X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FremoveInvalidEmails.php;h=bee8d693a8e7b7ca1433ad2ce661d7607c031e80;hb=326d52f9613c5227d75f97361be6ec6ef78b214e;hp=91025bf109ffb9c84d12e80cb81c2c4b4879f204;hpb=c8257fff63295f75755bb0624ceb9b600f692585;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/removeInvalidEmails.php b/maintenance/removeInvalidEmails.php index 91025bf109..bee8d693a8 100644 --- a/maintenance/removeInvalidEmails.php +++ b/maintenance/removeInvalidEmails.php @@ -21,6 +21,7 @@ class RemoveInvalidEmails extends Maintenance { $this->addOption( 'commit', 'Whether to actually update the database', false, false ); $this->setBatchSize( 500 ); } + public function execute() { $this->commit = $this->hasOption( 'commit' ); $dbr = $this->getDB( DB_REPLICA ); @@ -74,5 +75,5 @@ class RemoveInvalidEmails extends Maintenance { } } -$maintClass = 'RemoveInvalidEmails'; +$maintClass = RemoveInvalidEmails::class; require_once RUN_MAINTENANCE_IF_MAIN;