Make HTMLFileCache also work when gzip is not enabled server-side.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 26 Jun 2012 10:44:36 +0000 (12:44 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 26 Jun 2012 10:44:36 +0000 (12:44 +0200)
In that case, it was just returning a blank page.

Change-Id: I08fbc5be37b5ee31504aae6af51b6cbebef44f29

includes/cache/HTMLFileCache.php

index f9ea135..6bfeed3 100644 (file)
@@ -142,6 +142,8 @@ class HTMLFileCache extends FileCacheBase {
                                wfDebug( __METHOD__ . " uncompressing cache file and sending it\n" );
                                readgzfile( $filename );
                        }
+               } else {
+                       readfile( $filename );
                }
                $context->getOutput()->disable(); // tell $wgOut that output is taken care of
        }