Legoktm has uploaded a new change for review. https://gerrit.wikimedia.org/r/186214
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth refs/changes/14/186214/1 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: newchange Gerrit-Change-Id: I0b9457f50bf7620df0e7e5f992ba517a575111a9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits