r85176 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85175‎ | r85176 | r85177 >
Date:00:27, 2 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Remove unused global, fix double defined global
Modified paths:
  • /trunk/phase3/includes/specials/SpecialEditWatchlist.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialImport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialImport.php
@@ -58,7 +58,6 @@
5959 $this->outputHeader();
6060
6161 if ( wfReadOnly() ) {
62 - global $wgOut;
6362 $wgOut->readOnlyPage();
6463 return;
6564 }
Index: trunk/phase3/includes/specials/SpecialEditWatchlist.php
@@ -31,7 +31,7 @@
3232 * @param $mode int
3333 */
3434 public function execute( $mode ) {
35 - global $wgUser, $wgLang, $wgOut, $wgRequest;
 35+ global $wgUser, $wgOut, $wgRequest;
3636 if( wfReadOnly() ) {
3737 $wgOut->readOnlyPage();
3838 return;

Status & tagging log