registration: Improve duplicate config setting exception
[lhc/web/wiklou.git] / maintenance / resetUserTokens.php
index 1c8b4b9..284db2c 100644 (file)
@@ -68,7 +68,6 @@ class ResetUserTokens extends Maintenance {
                }
 
                // We list user by user_id from one of the replica DBs
-               // We list user by user_id from one of the slave database
                $dbr = $this->getDB( DB_REPLICA );
 
                $where = [];
@@ -80,7 +79,7 @@ class ResetUserTokens extends Maintenance {
                $maxid = $dbr->selectField( 'user', 'MAX(user_id)', [], __METHOD__ );
 
                $min = 0;
-               $max = $this->mBatchSize;
+               $max = $this->getBatchSize();
 
                do {
                        $result = $dbr->select( 'user',
@@ -99,7 +98,7 @@ class ResetUserTokens extends Maintenance {
                        }
 
                        $min = $max;
-                       $max = $min + $this->mBatchSize;
+                       $max = $min + $this->getBatchSize();
 
                        wfWaitForSlaves();
                } while ( $min <= $maxid );
@@ -116,5 +115,5 @@ class ResetUserTokens extends Maintenance {
        }
 }
 
-$maintClass = "ResetUserTokens";
+$maintClass = ResetUserTokens::class;
 require_once RUN_MAINTENANCE_IF_MAIN;