$wgUseGzip had no effect
authorSeb35 <seb35wikipedia@gmail.com>
Sat, 20 Jun 2015 17:07:07 +0000 (19:07 +0200)
committerSeb35 <seb35wikipedia@gmail.com>
Sat, 20 Jun 2015 17:07:07 +0000 (19:07 +0200)
Since MediaWiki 1.24 a constructor is defined in HTMLFileCache,
so the constructor of the parent class, FileCacheBase, is no more
called, and $wgUseGzip is no more used. This fix explicitely calls
the parent constructor.

Bug: T103237
Change-Id: I80c1871881049b9618c23aa76e6665867ecec2aa

includes/cache/HTMLFileCache.php

index c07032b..483eaa5 100644 (file)
@@ -48,6 +48,7 @@ class HTMLFileCache extends FileCacheBase {
         * @throws MWException
         */
        public function __construct( $title, $action ) {
+               parent::__construct();
                $allowedTypes = self::cacheablePageActions();
                if ( !in_array( $action, $allowedTypes ) ) {
                        throw new MWException( 'Invalid file cache type given.' );