From cc464e2cfb2c181467127e66376a675ed9e947cd Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 1 Jul 2011 02:58:42 +0000 Subject: [PATCH] Remove unused globals --- includes/Preferences.php | 2 +- includes/specials/SpecialUndelete.php | 2 +- includes/specials/SpecialUserlogin.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Preferences.php b/includes/Preferences.php index 5df8b54935..b1274d1826 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -786,7 +786,7 @@ class Preferences { * @param $defaultPreferences Array */ static function rcPreferences( $user, &$defaultPreferences ) { - global $wgRCMaxAge, $wgUseRCPatrol, $wgLang; + global $wgRCMaxAge, $wgLang; ## RecentChanges ##################################### $defaultPreferences['rcdays'] = array( diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 29c8034cb1..284243a0ed 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -741,7 +741,7 @@ class SpecialUndelete extends SpecialPage { * @return bool */ private function showList( $result ) { - global $wgLang, $wgUser, $wgOut; + global $wgLang, $wgOut; if( $result->numRows() == 0 ) { $wgOut->addWikiMsg( 'undelete-no-results' ); diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index b0e435e4d8..c18767bb7e 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -1179,7 +1179,6 @@ class LoginForm extends SpecialPage { * @param $lang Language code */ function makeLanguageSelectorLink( $text, $lang ) { - global $wgUser; $self = SpecialPage::getTitleFor( 'Userlogin' ); $attr = array( 'uselang' => $lang ); if( $this->mType == 'signup' ) { -- 2.20.1