From: Sam Reed Date: Sat, 2 Apr 2011 00:27:03 +0000 (+0000) Subject: Remove unused global, fix double defined global X-Git-Tag: 1.31.0-rc.0~31085 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=aaa6dcc39988ecd9ccea64c39ed64c45df6218d0;p=lhc%2Fweb%2Fwiklou.git Remove unused global, fix double defined global --- 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; }