From: Carsten K. <car...@us...> - 2002-03-02 22:55:48
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv18434 Modified Files: transform.php Log Message: Applied a workaround patch, for the double-call to do_transform() on old-markup pages. It's been running on the demo server today without any problems so far, let me know if you find any problems with this fix installed. Index: transform.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/transform.php,v retrieving revision 1.41 retrieving revision 1.42 diff -u -2 -b -p -d -r1.41 -r1.42 --- transform.php 9 Feb 2002 03:41:54 -0000 1.41 +++ transform.php 2 Mar 2002 22:55:44 -0000 1.42 @@ -362,4 +362,13 @@ function do_transform ($lines, $class = $lines = preg_split('/[ \t\r]*\n/', trim($lines)); + // workaround to prevent transform from being called twice + if (! defined('debug_WPT_AlreadyDone')) { + define('debug_WPT_AlreadyDone', 1); + } else { + //if (defined('DEBUG')) + // trigger_error("DEBUG: Stopped second call to {$class}->do_transform()."); + return; + } // end workaround + $trfm = new $class; return $trfm->do_transform('', $lines); |