From: Seb35 Date: Sat, 20 Jun 2015 17:07:07 +0000 (+0200) Subject: $wgUseGzip had no effect X-Git-Tag: 1.31.0-rc.0~10989^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=ad0d70fd52f93eadce4cf085fc01cc13765a89df;p=lhc%2Fweb%2Fwiklou.git $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 --- 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.' );