X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixUserRegistration.php;h=57fd91bc9bc496ce541c3f2743621b624370fe1f;hb=a9f438227050c1fac6efe91fa8ff38947ae7c089;hp=37fd44fb2e11eb6bc17c8a84499547026090b438;hpb=c24cbb13dfa35274adc1a6ab11a5ebf38fe5c7d9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php index 37fd44fb2e..57fd91bc9b 100644 --- a/maintenance/fixUserRegistration.php +++ b/maintenance/fixUserRegistration.php @@ -51,7 +51,7 @@ class FixUserRegistration extends Maintenance { ], __METHOD__, [ - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), 'ORDER BY' => 'user_id', ] ); @@ -83,9 +83,9 @@ class FixUserRegistration extends Maintenance { $this->output( "Waiting for replica DBs..." ); wfWaitForSlaves(); $this->output( " done.\n" ); - } while ( $res->numRows() >= $this->mBatchSize ); + } while ( $res->numRows() >= $this->getBatchSize() ); } } -$maintClass = "FixUserRegistration"; +$maintClass = FixUserRegistration::class; require_once RUN_MAINTENANCE_IF_MAIN;