Pmlineditor has uploaded a new change for review.

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

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::queryAttached
for each user to lock, similar to SpecialCentralAuth.php

Bug: T93731
Change-Id: I6d259432317ca9675ae5f293f19eda1c64b88de5
---
M includes/specials/SpecialMultiLock.php
1 file changed, 6 insertions(+), 1 deletion(-)


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

diff --git a/includes/specials/SpecialMultiLock.php 
b/includes/specials/SpecialMultiLock.php
index c549c1e..25fc405 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->queryAttached() ) ) );
                $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: newchange
Gerrit-Change-Id: I6d259432317ca9675ae5f293f19eda1c64b88de5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Pmlineditor <pmlinedi...@live.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to