From: Platonides Date: Mon, 20 May 2013 09:28:27 +0000 (+0200) Subject: Move the global to the place it is needed. X-Git-Tag: 1.31.0-rc.0~19628^2 X-Git-Url: http://git.cyclocoop.org/%27-%20%20.%20url_absolue%28find_in_path%28%27spip_style.css%27%29%29%20%20%20.%20url_absolue%28find_in_path%28%27prive/spip_style.css%27%29%29%20.%20%27?a=commitdiff_plain;h=186f5f63e3d35736782e1a4f75abee9b6f228bef;p=lhc%2Fweb%2Fwiklou.git Move the global to the place it is needed. Follow-up 8be2e118 Change-Id: Ic72a8f24fdcbafcb689370c845dcf6df4f864493 --- diff --git a/maintenance/deleteEqualMessages.php b/maintenance/deleteEqualMessages.php index 693c8d878c..fd289a4285 100644 --- a/maintenance/deleteEqualMessages.php +++ b/maintenance/deleteEqualMessages.php @@ -41,7 +41,7 @@ class DeleteEqualMessages extends Maintenance { * @param string|bool $langCode See --lang-code option. */ protected function fetchMessageInfo( $langCode, array &$messageInfo ) { - global $wgUser, $wgContLang; + global $wgContLang; if ( $langCode ) { $this->output( "\n... fetching message info for language: $langCode" ); @@ -152,6 +152,7 @@ class DeleteEqualMessages extends Maintenance { if ( !$user ) { $this->error( "Invalid username", true ); } + global $wgUser; $wgUser = $user; // Hide deletions from RecentChanges