Followup r54516, remove globals entirely.
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 6 Aug 2009 22:35:19 +0000 (22:35 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 6 Aug 2009 22:35:19 +0000 (22:35 +0000)
includes/DefaultSettings.php
includes/specials/SpecialStatistics.php

index 73e80be..328439a 100644 (file)
@@ -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['<name of statistic>'] = <value>; 
- * Example: $wgStatsOther['Time since 01.01.1970'] = time();
- */
-$wgStatsOther = array();
-
index 66f31dc..e35fac8 100644 (file)
@@ -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' ) ) ) .