Platonides has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64559


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/59/64559/1

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: newchange
Gerrit-Change-Id: Ic72a8f24fdcbafcb689370c845dcf6df4f864493
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Platonides <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to