From a8ed91a8ebbcd035bcf91ebb38733b9ffc2994d7 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 25 Feb 2009 14:51:51 +0000 Subject: [PATCH] Fix pack function for Gforge git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6562 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index f0f30eef4..0a8bcab96 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -2,6 +2,7 @@ rcs_id('$Id$'); /* Copyright (C) 2002 Geoffrey T. Dairiki * Copyright (C) 2004-2008 $ThePhpWikiProgrammingTeam + * Copyright (C) 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent * * This file is part of PhpWiki. * @@ -35,6 +36,17 @@ class CacheableMarkup extends XmlContent { } function pack() { + + // Gforge hack + // This causes a strange bug when a comment containing + // a single quote is entered in the Summary box: + // - the history is wrong (user and comment missing) + // - the table of contents plugin no longer works + global $WikiTheme; + if (isa($WikiTheme, 'WikiTheme_gforge')) { + return serialize($this); + } + if (function_exists('gzcompress')) return gzcompress(serialize($this), 9); return serialize($this); -- 2.45.0