From dfeccbc7781f7bb35085ce0e7d3701b114ce499b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 11 Jul 2006 16:33:04 +0000 Subject: [PATCH] Suppress when miser mode is on; it's expensive --- includes/SpecialStatistics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ) . '

' ); -- 2.20.1