From: Rob Church Date: Tue, 11 Jul 2006 16:33:04 +0000 (+0000) Subject: Suppress when miser mode is on; it's expensive X-Git-Tag: 1.31.0-rc.0~56298 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=dfeccbc7781f7bb35085ce0e7d3701b114ce499b;p=lhc%2Fweb%2Fwiklou.git Suppress when miser mode is on; it's expensive --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index ffe58dc733..dda82a8568 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -82,8 +82,8 @@ function wfSpecialStatistics() { $wgOut->addWikiText( $text ); - global $wgDisableCounters, $wgUser, $wgLang; - if( !$wgDisableCounters ) { + global $wgDisableCounters, $wgMiserMode, $wgUser, $wgLang; + if( !$wgDisableCounters && !$wgMiserMode ) { $res = $dbr->query( "SELECT page_namespace, page_title, page_counter FROM {$page} WHERE page_is_redirect = 0 AND page_counter > 0 ORDER BY page_counter DESC LIMIT 0,10", __METHOD__ ); if( $res ) { $wgOut->addHtml( '

' . wfMsgHtml( 'statistics-mostpopular' ) . '

' );