From ad0d70fd52f93eadce4cf085fc01cc13765a89df Mon Sep 17 00:00:00 2001 From: Seb35 Date: Sat, 20 Jun 2015 19:07:07 +0200 Subject: [PATCH] $wgUseGzip had no effect 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/cache/HTMLFileCache.php b/includes/cache/HTMLFileCache.php index c07032bf03..483eaa5768 100644 --- a/includes/cache/HTMLFileCache.php +++ b/includes/cache/HTMLFileCache.php @@ -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.' ); -- 2.20.1