remove duplicate global definitions
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Feb 2010 17:03:25 +0000 (17:03 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Feb 2010 17:03:25 +0000 (17:03 +0000)
includes/Preferences.php

index 2971b99..dd36f1b 100644 (file)
@@ -209,7 +209,6 @@ class Preferences {
                                );
 
                if( $wgAuth->allowPasswordChange() ) {
-                       global $wgUser; // For skin.
                        $link = $wgUser->getSkin()->link( SpecialPage::getTitleFor( 'Resetpass' ),
                                wfMsgHtml( 'prefs-resetpass' ), array(),
                                array( 'returnto' => SpecialPage::getTitleFor( 'Preferences' ) ) );
@@ -781,7 +780,6 @@ class Preferences {
                                        'section' => 'rc/advancedrc',
                                );
 
-               global $wgUseRCPatrol;
                if( $wgUseRCPatrol ) {
                        $defaultPreferences['hidepatrolled'] =
                                        array(