jenkins-bot has submitted this change and it was merged.

Change subject: GlobalRenameQueue: Link to current wiki for steward if they're 
attached locally
......................................................................


GlobalRenameQueue: Link to current wiki for steward if they're attached locally

Bug: T87347
Change-Id: I0b9457f50bf7620df0e7e5f992ba517a575111a9
---
M includes/specials/SpecialGlobalRenameQueue.php
1 file changed, 8 insertions(+), 3 deletions(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialGlobalRenameQueue.php 
b/includes/specials/SpecialGlobalRenameQueue.php
index 72f2884..0a33b32 100644
--- a/includes/specials/SpecialGlobalRenameQueue.php
+++ b/includes/specials/SpecialGlobalRenameQueue.php
@@ -193,6 +193,13 @@
                )->parseAsBlock();
 
                $steward = CentralAuthUser::newFromId( $req->getPerformer() );
+               if ( $steward->isAttached() ) {
+                       $stewardLink = Title::makeTitleSafe( NS_USER, 
$steward->getName() )->getFullURL();
+               } else {
+                       $stewardLink = WikiMap::getForeignURL(
+                               $steward->getHomeWiki(), 
"User:{$steward->getName()}"
+                       );
+               }
 
                // Done as one big message so that stewards can create a local
                // translation to customize the output as they see fit.
@@ -208,9 +215,7 @@
                        $this->getLanguage()->userTimeAndDate(
                                $req->getCompleted(), $this->getUser()
                        ),
-                       WikiMap::getForeignURL(
-                               $steward->getHomeWiki(), 
"User:{$steward->getName()}"
-                       ),
+                       $stewardLink,
                        $steward->getName(),
                        $req->getComments()
                )->parseAsBlock();

-- 
To view, visit https://gerrit.wikimedia.org/r/186214
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0b9457f50bf7620df0e7e5f992ba517a575111a9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: BryanDavis <bda...@wikimedia.org>
Gerrit-Reviewer: Hoo man <h...@online.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to