Missing global caused $wgCompressedPersistentLC=true to be ignored
authorMr. E23 <e23@users.mediawiki.org>
Wed, 28 Jan 2004 10:26:28 +0000 (10:26 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Wed, 28 Jan 2004 10:26:28 +0000 (10:26 +0000)
includes/LinkCache.php

index 3052aca..f7b8305 100644 (file)
@@ -144,7 +144,7 @@ class LinkCache {
 
        function preFill( &$fromtitle )
        {
-               global $wgEnablePersistentLC, $wgCompressedPersistentLC;
+               global $wgEnablePersistentLC;
 
                $fname = "LinkCache::preFill";
                wfProfileIn( $fname );
@@ -292,6 +292,7 @@ class LinkCache {
        }
 
        /* private */ function saveToLinkscc( $pid, $dbkeyfrom ){
+               global $wgCompressedPersistentLC;
                if( $wgCompressedPersistentLC and function_exists( "gzcompress" ) ) {
                        $ser = wfStrencode( gzcompress( serialize( $this ), 3 ));
                } else {