From: Platonides Date: Sun, 6 Mar 2011 23:28:32 +0000 (+0000) Subject: Remove unused globals X-Git-Tag: 1.31.0-rc.0~31583 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=95f1076f204ed47bad660a613d844f813bb4c313;p=lhc%2Fweb%2Fwiklou.git Remove unused globals --- diff --git a/skins/Modern.php b/skins/Modern.php index 017be88461..3998046690 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -46,7 +46,6 @@ class ModernTemplate extends MonoBookTemplate { * @access private */ function execute() { - global $wgRequest; $this->skin = $skin = $this->data['skin']; // Suppress warnings to prevent notices about missing indexes in $this->data diff --git a/tests/phpunit/includes/parser/MediaWikiParserTest.php b/tests/phpunit/includes/parser/MediaWikiParserTest.php index 634c666192..8d6230d188 100644 --- a/tests/phpunit/includes/parser/MediaWikiParserTest.php +++ b/tests/phpunit/includes/parser/MediaWikiParserTest.php @@ -15,7 +15,7 @@ require_once( dirname(dirname(dirname( __FILE__ ))) . '/bootstrap.php' ); class MediaWikiParserTest { public static function suite() { - global $IP, $wgParserTestFiles; + global $wgParserTestFiles; $suite = new PHPUnit_Framework_TestSuite; diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index 311c829299..5d52d7d1d8 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -592,7 +592,7 @@ class NewParserTest extends MediaWikiTestCase { * Get a Parser object */ function getParser( $preprocessor = null ) { - global $wgParserConf, $wgHooks; + global $wgParserConf; $class = $wgParserConf['class']; $parser = new $class( array( 'preprocessorClass' => $preprocessor ) + $wgParserConf );