From: <var...@us...> - 2009-02-25 14:52:01
|
Revision: 6562 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6562&view=rev Author: vargenau Date: 2009-02-25 14:51:51 +0000 (Wed, 25 Feb 2009) Log Message: ----------- Fix pack function for Gforge Modified Paths: -------------- trunk/lib/CachedMarkup.php Modified: trunk/lib/CachedMarkup.php =================================================================== --- trunk/lib/CachedMarkup.php 2009-02-25 14:11:28 UTC (rev 6561) +++ trunk/lib/CachedMarkup.php 2009-02-25 14:51:51 UTC (rev 6562) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /* Copyright (C) 2002 Geoffrey T. Dairiki <da...@da...> * Copyright (C) 2004-2008 $ThePhpWikiProgrammingTeam + * Copyright (C) 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent * * This file is part of PhpWiki. * @@ -35,6 +36,17 @@ } 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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |