Remove unused globals.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 19:36:35 +0000 (19:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 19:36:35 +0000 (19:36 +0000)
maintenance/language/StatOutputs.php
maintenance/tests/ApiWatchTest.php

index 7d69bf7..f1e935b 100644 (file)
@@ -31,7 +31,6 @@ class statsOutput {
 /** Outputs WikiText */
 class wikiStatsOutput extends statsOutput {
        function heading() {
-               global $IP;
                $version = SpecialVersion::getVersion( 'nodb' );
                echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n";
                echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n";
index d1130d9..6153643 100644 (file)
@@ -95,7 +95,6 @@ class ApiWatchTest extends ApiTestSetup {
         * @depends testWatchEdit
         */
        function testWatchClear( $data ) {
-               global $wgUser;
                $data = $this->doApiRequest( array(
                        'action' => 'query',
                        'list' => 'watchlist' ), $data );