From aaa6dcc39988ecd9ccea64c39ed64c45df6218d0 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 2 Apr 2011 00:27:03 +0000 Subject: [PATCH] Remove unused global, fix double defined global --- includes/specials/SpecialEditWatchlist.php | 2 +- includes/specials/SpecialImport.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 668cdc2660..a53b581052 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -31,7 +31,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { * @param $mode int */ public function execute( $mode ) { - global $wgUser, $wgLang, $wgOut, $wgRequest; + global $wgUser, $wgOut, $wgRequest; if( wfReadOnly() ) { $wgOut->readOnlyPage(); return; diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index 9ea9b07184..12b295958c 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -58,7 +58,6 @@ class SpecialImport extends SpecialPage { $this->outputHeader(); if ( wfReadOnly() ) { - global $wgOut; $wgOut->readOnlyPage(); return; } -- 2.20.1