Fix for file cache on PHP 4.1.2. The text string seems to be passed by
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Aug 2004 10:15:20 +0000 (10:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Aug 2004 10:15:20 +0000 (10:15 +0000)
references, and changing it screws things royally; instead make a copy.

includes/CacheManager.php

index e85f69d..7a68114 100644 (file)
@@ -110,7 +110,8 @@ class CacheManager {
                if(!file_exists($mydir2)) { mkdir($mydir2,0775); }
        }
        
-       function saveToFileCache( $text ) {
+       function saveToFileCache( $origtext ) {
+               $text = $origtext;
                if(strcmp($text,'') == 0) return '';
                
                wfDebug(" saveToFileCache()\n", false);