jenkins-bot has submitted this change and it was merged.
Change subject: $wgUseGzip had no effect
......................................................................
$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.
Backported since it's a simple fix, at least for LTS
Bug: T103237
Change-Id: I80c1871881049b9618c23aa76e6665867ecec2aa
(cherry picked from commit ad0d70fd52f93eadce4cf085fc01cc13765a89df)
---
M RELEASE-NOTES-1.25
M includes/cache/HTMLFileCache.php
2 files changed, 8 insertions(+), 0 deletions(-)
Approvals:
Umherirrender: Looks good to me, approved
jenkins-bot: Verified
diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25
index 08a6c15..864db4e 100644
--- a/RELEASE-NOTES-1.25
+++ b/RELEASE-NOTES-1.25
@@ -1,6 +1,13 @@
Security reminder: If you have PHP's register_globals option set, you must
turn it off. MediaWiki will not work with it enabled.
+== MediaWiki 1.25.4 ==
+
+THIS IS NOT YET A RELEASE!
+
+=== Changes since 1.25.3 ===
+* (T103237) $wgUseGzip had no effect when using file cache.
+
== MediaWiki 1.25.3 ==
This is a security and maintenance release of the MediaWiki 1.25 branch.
diff --git a/includes/cache/HTMLFileCache.php b/includes/cache/HTMLFileCache.php
index c07032b..483eaa5 100644
--- a/includes/cache/HTMLFileCache.php
+++ b/includes/cache/HTMLFileCache.php
@@ -48,6 +48,7 @@
* @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.'
);
--
To view, visit https://gerrit.wikimedia.org/r/246396
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I80c1871881049b9618c23aa76e6665867ecec2aa
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_25
Gerrit-Owner: Martineznovo <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Seb35 <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits