Cleanup a few unused globals
authorSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:35:48 +0000 (02:35 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:35:48 +0000 (02:35 +0000)
img_auth.php
includes/filerepo/backend/FileBackend.php
includes/specials/SpecialListusers.php
includes/specials/SpecialMovepage.php
maintenance/protect.php
tests/phpunit/includes/HtmlTest.php

index 7b09eb6..3999bf3 100644 (file)
@@ -43,7 +43,7 @@ wfImageAuthMain();
 wfLogProfilingData();
 
 function wfImageAuthMain() {
-       global $wgImgAuthPublicTest, $wgRequest, $wgUploadDirectory;
+       global $wgImgAuthPublicTest, $wgRequest;
 
        // See if this is a public Wiki (no protections).
        if ( $wgImgAuthPublicTest
index 1904e01..e546c96 100644 (file)
@@ -1127,7 +1127,7 @@ abstract class FileBackendStore extends FileBackend {
 
        /**
         * @see FileBackend::getFileStat()
-        * @return bool|void
+        * @return bool
         */
        final public function getFileStat( array $params ) {
                wfProfileIn( __METHOD__ );
index 0fbe887..cddfe01 100644 (file)
@@ -157,7 +157,6 @@ class UsersPager extends AlphabeticPager {
                        $edits = '';
                }
 
-               global $wgLang;
                $userTalkPage = $userPage->getTalkPage();
                $talk = ' (' . Linker::link( $userTalkPage, wfMessage( 'talkpagelinktext' )->escaped() ) . ')';
 
index 5d1370d..56217b3 100644 (file)
@@ -383,7 +383,7 @@ class MovePageForm extends UnlistedSpecialPage {
        }
 
        function doSubmit() {
-               global $wgMaximumMovedPages, $wgFixDoubleRedirects, $wgDeleteRevisionsLimit;
+               global $wgMaximumMovedPages, $wgFixDoubleRedirects;
 
                $user = $this->getUser();
 
index 56958ea..e772d67 100644 (file)
@@ -35,8 +35,6 @@ class Protect extends Maintenance {
        }
 
        public function execute() {
-               global $wgUser;
-
                $userName = $this->getOption( 'u', 'Maintenance script' );
                $reason = $this->getOption( 'r', '' );
 
index c3c7646..9e2deb1 100644 (file)
@@ -214,8 +214,6 @@ class HtmlTest extends MediaWikiTestCase {
        }
 
        function testNamespaceSelector() {
-               global $wgContLang;
-
                $this->assertEquals(
                        '<select id="namespace" name="namespace">' . "\n" .
 '<option value="0">(Main)</option>' . "\n" .