Rillke has uploaded a new change for review.

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

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/75/281475/1

diff --git a/includes/specials/SpecialCentralAuth.php 
b/includes/specials/SpecialCentralAuth.php
index 5b3b8cb..2dd4856 100644
--- a/includes/specials/SpecialCentralAuth.php
+++ b/includes/specials/SpecialCentralAuth.php
@@ -72,6 +72,12 @@
                        return;
                }
 
+               $userPage = Title::newFromText( $this->mUserName, NS_USER );
+               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: newchange
Gerrit-Change-Id: Ibd028f468c8de3a46791f430ccdbb61b3bdfcc0b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Rillke <[email protected]>

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

Reply via email to