Pgehres has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52151
Change subject: Adding username to the account details section of
Special:CentralAuth (Bug 36015)
......................................................................
Adding username to the account details section of Special:CentralAuth (Bug
36015)
Change-Id: Ia7e0121848b42d48c5c16a190ddc741a7d0954bc
---
M specials/SpecialCentralAuth.php
1 file changed, 8 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/51/52151/1
diff --git a/specials/SpecialCentralAuth.php b/specials/SpecialCentralAuth.php
index 279de73..c4ae2ea 100644
--- a/specials/SpecialCentralAuth.php
+++ b/specials/SpecialCentralAuth.php
@@ -289,6 +289,7 @@
$reg = $globalUser->getRegistration();
$age = $this->prettyTimespan( wfTimestamp( TS_UNIX ) -
wfTimestamp( TS_UNIX, $reg ) );
$attribs = array(
+ 'name' => $globalUser->getName(),
'id' => $globalUser->getId(),
'registered' => htmlspecialchars(
$this->getLanguage()->timeanddate( $reg, true ) . " ($age)" ),
'home' => $this->determineHomeWiki(),
@@ -299,8 +300,13 @@
$out = '<fieldset id="mw-centralauth-info">';
$out .= '<legend>' . $this->msg(
'centralauth-admin-info-header' )->escaped() . '</legend><ul>';
foreach ( $attribs as $tag => $data ) {
- $out .= '<li><strong>' . $this->msg(
"centralauth-admin-info-$tag" )->escaped() . '</strong> ' .
- $data . '</li>';
+ $out .= '<li><strong>';
+ if ( $tag == 'name' ) {
+ $out .= $this->msg(
"centralauth-admin-username" )->escaped();
+ } else {
+ $out .= $this->msg(
"centralauth-admin-info-$tag" )->escaped();
+ }
+ $out .= '</strong> ' . $data . '</li>';
}
$out .= '</ul></fieldset>';
$this->getOutput()->addHTML( $out );
--
To view, visit https://gerrit.wikimedia.org/r/52151
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7e0121848b42d48c5c16a190ddc741a7d0954bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Pgehres <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits