From: umherirrender Date: Fri, 3 Aug 2012 11:03:08 +0000 (+0200) Subject: Change from wgMiserMode to isCached on Special:WithoutInterwikis X-Git-Tag: 1.31.0-rc.0~22859^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=0920d4a4803e779ce45c5ee496ba93b4e6b613ab;p=lhc%2Fweb%2Fwiklou.git Change from wgMiserMode to isCached on Special:WithoutInterwikis This makes it clearer why the input from is not needed. It does not change anything, because isCached checks isExpensive and wgMiserMode and isExpensive is true here. Change-Id: Ib5f775d5ff20b53b91732ca544ec273543afe7d1 --- diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutinterwiki.php index accef8c8c6..74eedc37ee 100644 --- a/includes/specials/SpecialWithoutinterwiki.php +++ b/includes/specials/SpecialWithoutinterwiki.php @@ -41,10 +41,10 @@ class WithoutInterwikiPage extends PageQueryPage { } function getPageHeader() { - global $wgScript, $wgMiserMode; + global $wgScript; - # Do not show useless input form if wiki is running in misermode - if( $wgMiserMode ) { + # Do not show useless input form if special page is cached + if( $this->isCached() ) { return ''; }