Hoo man has uploaded a new change for review.
https://gerrit.wikimedia.org/r/185477
Change subject: Revert "Show "Locked" message at Special:CentralAuth only if
account is locked"
......................................................................
Revert "Show "Locked" message at Special:CentralAuth only if account is locked"
This is highly confusing... if we really want something like
that, please choose another way to display it.
Something consistent would be to make it look like blocked
messages on Special:Contribs.
This reverts commit e729157b8a82079a179f0a74fb350cfe04114350.
Change-Id: I8975398b14d506cfef0bc769a5922c96b60e0b9a
---
M includes/specials/SpecialCentralAuth.php
1 file changed, 1 insertion(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/77/185477/1
diff --git a/includes/specials/SpecialCentralAuth.php
b/includes/specials/SpecialCentralAuth.php
index 7e154b5..4d26914 100644
--- a/includes/specials/SpecialCentralAuth.php
+++ b/includes/specials/SpecialCentralAuth.php
@@ -287,11 +287,8 @@
'username' => $globalUser->getName(),
'registered' => htmlspecialchars(
$this->getLanguage()->timeanddate( $reg, true ) . " ($age)" ),
'editcount' => htmlspecialchars(
$this->getLanguage()->formatNum( $this->evaluateTotalEditcount() ) ),
+ 'locked' => $this->msg( $globalUser->isLocked() ?
'centralauth-admin-yes' : 'centralauth-admin-no' )->escaped(),
);
-
- if ( $globalUser->isLocked() ) {
- $attribs['locked'] = $this->msg(
'centralauth-admin-yes' )->escaped();
- }
if ( $this->mCanOversight ) {
$attribs['hidden'] = $this->formatHiddenLevel(
$globalUser->getHiddenLevel() );
--
To view, visit https://gerrit.wikimedia.org/r/185477
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8975398b14d506cfef0bc769a5922c96b60e0b9a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits