Legoktm has uploaded a new change for review.

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


Change subject: Cleanup some i18n and fix documentation
......................................................................

Cleanup some i18n and fix documentation

Change-Id: I11fdb902794c20a18afc478094bfc38599b85dea
---
M specials/SpecialCheckUser.php
1 file changed, 5 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CheckUser 
refs/changes/24/93924/1

diff --git a/specials/SpecialCheckUser.php b/specials/SpecialCheckUser.php
index 2af561d..2b7b3b0 100644
--- a/specials/SpecialCheckUser.php
+++ b/specials/SpecialCheckUser.php
@@ -204,11 +204,11 @@
        }
 
        /**
-        * FIXME: documentation incomplete
         * Block a list of selected users
         * @param array $users
         * @param string $reason
         * @param string $tag
+        * @param string $talkTag
         */
        protected function doMassUserBlock( $users, $reason = '', $tag = '', 
$talkTag = '' ) {
                global $wgCheckUserMaxBlocks;
@@ -388,9 +388,7 @@
 
                # If user is not IP or nonexistent
                if ( !$user_id ) {
-                       // FIXME: addWikiMsg
-                       $s = $this->msg( 'nosuchusershort', $user 
)->parseAsBlock();
-                       $out->addHTML( $s );
+                       $out->addWikiMsgArray( 'nosuchusershort', $user );
                        return;
                }
 
@@ -431,8 +429,7 @@
                        $counter = 0;
                        foreach ( $ret as $row ) {
                                if ( $counter >= 5000 ) {
-                                       // FIXME: addWikiMSG
-                                       $out->addHTML( $this->msg( 
'checkuser-limited' )->parseAsBlock() );
+                                       $out->addWikiMsg( 'checkuser-limited' );
                                        break;
                                }
                                $ips_edits[$row->cuc_ip] = $row->count;
@@ -601,8 +598,7 @@
                        $s .= '<ol>';
                        foreach ( $ret as $row ) {
                                if ( $counter >= 5000 ) {
-                                       // @todo FIXME: addWikiMsg
-                                       $out->addHTML( $this->msg( 
'checkuser-limited' )->parseAsBlock() );
+                                       $out->addWikiMsg( 'checkuser-limited' );
                                        break;
                                }
                                # Convert the IP hexes into normal form
@@ -672,8 +668,7 @@
                        $s = '<div id="checkuserresults">';
                        foreach ( $ret as $row ) {
                                if ( $counter >= 5000 ) {
-                                       // @todo FIXME: addWikiMsg
-                                       $out->addHTML( $this->msg( 
'checkuser-limited' )->parseAsBlock() );
+                                       $out->addWikiMsg( 'checkuser-limited' );
                                        break;
                                }
                                $s .= $this->CUChangesLine( $row, $reason );

-- 
To view, visit https://gerrit.wikimedia.org/r/93924
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I11fdb902794c20a18afc478094bfc38599b85dea
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CheckUser
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to