From: Timo Tijhof Date: Wed, 28 Jun 2017 03:52:23 +0000 (-0700) Subject: filecache: Use current action instead of "view" only in outage mode X-Git-Tag: 1.31.0-rc.0~2831^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=41f4a25131c960186a979ade8b67b08ad3fee0b3;p=lhc%2Fweb%2Fwiklou.git filecache: Use current action instead of "view" only in outage mode Regression from 3ad9e41be9. Prior, $action was also passed to HTMLFileCache. Change-Id: Ie0f1c8b73d306bc710c346ad97868c53fb59809d --- diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 364ed86edf..19e827dd03 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -539,7 +539,7 @@ class MediaWiki { HTMLFileCache::useFileCache( $this->context, HTMLFileCache::MODE_OUTAGE ) ) { // Try to use any (even stale) file during outages... - $cache = new HTMLFileCache( $context->getTitle(), 'view' ); + $cache = new HTMLFileCache( $context->getTitle(), $action ); if ( $cache->isCached() ) { $cache->loadFromFileCache( $context, HTMLFileCache::MODE_OUTAGE ); print MWExceptionRenderer::getHTML( $e );