From 93fcbccb727e1969add028d75352e01e1c25088c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 8 Aug 2004 10:15:20 +0000 Subject: [PATCH] Fix for file cache on PHP 4.1.2. The text string seems to be passed by references, and changing it screws things royally; instead make a copy. --- includes/CacheManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/CacheManager.php b/includes/CacheManager.php index e85f69d94b..7a681140da 100644 --- a/includes/CacheManager.php +++ b/includes/CacheManager.php @@ -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); -- 2.20.1