Remove unused globals

This commit is contained in:
Sam Reed 2011-07-01 02:58:42 +00:00
parent 4720e1d4e3
commit cc464e2cfb
3 changed files with 2 additions and 3 deletions

View file

@ -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(

View file

@ -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' );

View file

@ -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' ) {