From c7fcdd956c0e2881ad61ca978fc50730ff32a608 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 6 Aug 2009 22:35:19 +0000 Subject: [PATCH] Followup r54516, remove globals entirely. --- includes/DefaultSettings.php | 13 ------------- includes/specials/SpecialStatistics.php | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 73e80be62f..328439a9fa 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -4155,16 +4155,3 @@ $wgCrossSiteAJAXdomainsRegex = false; * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount. */ $wgMemoryLimit = "50M"; - -/** - * Allow extensions to add Statistics at the end of Special:Statistics. - */ -$wgAllowStatsOther = true; - -/** - * Statistics which add at the end of Special:Statistics. - * Use: $wgStatsOther[''] = ; - * Example: $wgStatsOther['Time since 01.01.1970'] = time(); - */ -$wgStatsOther = array(); - diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 66f31dc49f..e35fac8f19 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -266,7 +266,7 @@ class SpecialStatistics extends SpecialPage { } private function getOtherStats( $stats ) { - global $wgLang, $wgAllowStatsOther, $wgStatsOther; + global $wgLang; $return = Xml::openElement( 'tr' ) . Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-hooks', array( 'parseinline' ) ) ) . -- 2.20.1