jenkins-bot has submitted this change and it was merged.
Change subject: Move the global to the place it is needed.
......................................................................
Move the global to the place it is needed.
Follow-up 8be2e118
Change-Id: Ic72a8f24fdcbafcb689370c845dcf6df4f864493
---
M maintenance/deleteEqualMessages.php
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/maintenance/deleteEqualMessages.php
b/maintenance/deleteEqualMessages.php
index 693c8d8..fd289a4 100644
--- a/maintenance/deleteEqualMessages.php
+++ b/maintenance/deleteEqualMessages.php
@@ -41,7 +41,7 @@
* @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 @@
if ( !$user ) {
$this->error( "Invalid username", true );
}
+ global $wgUser;
$wgUser = $user;
// Hide deletions from RecentChanges
--
To view, visit https://gerrit.wikimedia.org/r/64559
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic72a8f24fdcbafcb689370c845dcf6df4f864493
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Platonides <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits