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

Change subject: Set relevant user on Special:CentralAuth
......................................................................


Set relevant user on Special:CentralAuth

With the same logic as in I7481ab0fc1720e5e8

Bug: T131740
Change-Id: Ibd028f468c8de3a46791f430ccdbb61b3bdfcc0b
---
M includes/specials/SpecialCentralAuth.php
1 file changed, 6 insertions(+), 0 deletions(-)

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



diff --git a/includes/specials/SpecialCentralAuth.php 
b/includes/specials/SpecialCentralAuth.php
index 5b3b8cb..409c9a9 100644
--- a/includes/specials/SpecialCentralAuth.php
+++ b/includes/specials/SpecialCentralAuth.php
@@ -72,6 +72,12 @@
                        return;
                }
 
+               $userPage = Title::makeTitleSafe( NS_USER, $this->mUserName );
+               if ( $userPage ) {
+                       $localUser = User::newFromName( $userPage->getText(), 
false );
+                       $this->getSkin()->setRelevantUser( $localUser );
+               }
+
                // per bug 47991
                $this->getOutput()->setHTMLTitle( $this->msg(
                        'pagetitle',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibd028f468c8de3a46791f430ccdbb61b3bdfcc0b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Rillke <[email protected]>
Gerrit-Reviewer: Glaisher <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Rillke <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to