X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FremoveInvalidEmails.php;h=ec68ef2e77874ddb71455d5fa79ad63bbed62ae9;hb=8269ed4dfd5e4395e25945b1fa2ed391684606ed;hp=0f67317dfb344d4ffcce64ab666e07952073ced6;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/removeInvalidEmails.php b/maintenance/removeInvalidEmails.php index 0f67317dfb..ec68ef2e77 100644 --- a/maintenance/removeInvalidEmails.php +++ b/maintenance/removeInvalidEmails.php @@ -23,7 +23,7 @@ class RemoveInvalidEmails extends Maintenance { } public function execute() { $this->commit = $this->hasOption( 'commit' ); - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $dbw = $this->getDB( DB_MASTER ); $lastId = 0; do { @@ -36,7 +36,7 @@ class RemoveInvalidEmails extends Maintenance { 'user_email_authenticated IS NULL' ], __METHOD__, - [ 'LIMIT' => $this->mBatchSize ] + [ 'LIMIT' => $this->getBatchSize() ] ); $count = $rows->numRows(); $badIds = []; @@ -74,5 +74,5 @@ class RemoveInvalidEmails extends Maintenance { } } -$maintClass = 'RemoveInvalidEmails'; +$maintClass = RemoveInvalidEmails::class; require_once RUN_MAINTENANCE_IF_MAIN;