X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckUsernames.php;h=6c66da4f39a0ec0250cceda7ec863892aff245b1;hb=4c7cd244699256a2ae45ead1b0651291540ab114;hp=6f4d1704576c0376479fe32f0438311c0044c6c0;hpb=0e289eae349ce35d03af3e8fc10e9ad2e0119f26;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkUsernames.php b/maintenance/checkUsernames.php index 6f4d170457..6c66da4f39 100644 --- a/maintenance/checkUsernames.php +++ b/maintenance/checkUsernames.php @@ -35,7 +35,7 @@ class CheckUsernames extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Verify that database usernames are actually valid"; + $this->addDescription( 'Verify that database usernames are actually valid' ); $this->setBatchSize( 1000 ); } @@ -45,13 +45,13 @@ class CheckUsernames extends Maintenance { $maxUserId = 0; do { $res = $dbr->select( 'user', - array( 'user_id', 'user_name' ), - array( 'user_id > ' . $maxUserId ), + [ 'user_id', 'user_name' ], + [ 'user_id > ' . $maxUserId ], __METHOD__, - array( + [ 'ORDER BY' => 'user_id', 'LIMIT' => $this->mBatchSize, - ) + ] ); foreach ( $res as $row ) {