Made loadFromFileCache() always disable $wgOut regardless of whether compression...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 9 Feb 2012 18:53:35 +0000 (18:53 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 9 Feb 2012 18:53:35 +0000 (18:53 +0000)
includes/cache/HTMLFileCache.php

index 12e9b2d..256df57 100644 (file)
@@ -112,14 +112,13 @@ class HTMLFileCache extends FileCacheBase {
                if ( $this->useGzip() ) {
                        if ( wfClientAcceptsGzip() ) {
                                header( 'Content-Encoding: gzip' );
+                               readfile( $filename );
                        } else {
                                /* Send uncompressed */
                                wfDebug( __METHOD__ . " uncompressing cache file and sending it\n" );
                                readgzfile( $filename );
-                               return;
                        }
                }
-               readfile( $filename );
                $context->getOutput()->disable(); // tell $wgOut that output is taken care of
        }