jenkins-bot has submitted this change and it was merged.
Change subject: Display number of attached accounts in Special:MultiLock
......................................................................
Display number of attached accounts in Special:MultiLock
Displays the count of wikis returned by CentralAuthUser::listAttached
for each user to lock.
Bug: T93731
Change-Id: I6d259432317ca9675ae5f293f19eda1c64b88de5
---
M includes/specials/SpecialMultiLock.php
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Hoo man: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialMultiLock.php
b/includes/specials/SpecialMultiLock.php
index c549c1e..53704f1 100644
--- a/includes/specials/SpecialMultiLock.php
+++ b/includes/specials/SpecialMultiLock.php
@@ -251,6 +251,9 @@
'<th>' .
$out->getContext()->msg(
'centralauth-admin-info-editcount' )->escaped() .
'</th>' .
+ '<th>' .
+ $out->getContext()->msg(
'centralauth-admin-info-attached' )->escaped() .
+ '</th>' .
'</tr></thead>' .
'<tbody>';
@@ -283,7 +286,7 @@
} else {
$rowtext .= Html::element(
'td',
- array( 'colspan' => 6 ),
+ array( 'colspan' => 7 ),
$globalUser
);
}
@@ -322,6 +325,7 @@
$guLocked =
$this->msg('centralauth-admin-status-locked-yes')->escaped();
}
$guEditCount = htmlspecialchars(
$this->getLanguage()->formatNum( $globalUser->getGlobalEditCount() ) );
+ $guAttachedLocalAccounts = htmlspecialchars(
$this->getLanguage()->formatNum( count( $globalUser->listAttached() ) ) );
$rowHtml .= Html::rawElement( 'td', array(),
Html::input(
'wpActionTarget['.$guName.']',
@@ -335,6 +339,7 @@
$rowHtml .= Html::element( 'td', array(), $guLocked );
$rowHtml .= Html::element( 'td', array(), $guHidden );
$rowHtml .= Html::element( 'td', array(), $guEditCount );
+ $rowHtml .= Html::element( 'td', array(),
$guAttachedLocalAccounts );
return $rowHtml;
}
--
To view, visit https://gerrit.wikimedia.org/r/200340
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d259432317ca9675ae5f293f19eda1c64b88de5
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Pmlineditor <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits