Remove unused globals
authorPlatonides <platonides@users.mediawiki.org>
Sun, 6 Mar 2011 23:28:32 +0000 (23:28 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 6 Mar 2011 23:28:32 +0000 (23:28 +0000)
skins/Modern.php
tests/phpunit/includes/parser/MediaWikiParserTest.php
tests/phpunit/includes/parser/NewParserTest.php

index 017be88..3998046 100644 (file)
@@ -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
index 634c666..8d6230d 100644 (file)
@@ -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;
 
index 311c829..5d52d7d 100644 (file)
@@ -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 );