X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrefreshImageMetadata.php;h=65db94da1a727346d157a468ee857f650fe995f7;hb=d46835ef4f877b03a9d48aa392dc23ae37042756;hp=f6c0673b10bef458f94e3d609b1752233dc34c25;hpb=e7f6fc6d6f2306ec9b07e736088f3fd420c70681;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/refreshImageMetadata.php b/maintenance/refreshImageMetadata.php index f6c0673b10..65db94da1a 100644 --- a/maintenance/refreshImageMetadata.php +++ b/maintenance/refreshImageMetadata.php @@ -108,7 +108,7 @@ class RefreshImageMetadata extends Maintenance { $dbw = $this->getDB( DB_MASTER ); $batchSize = $this->getBatchSize(); if ( $batchSize <= 0 ) { - $this->error( "Batch size is too low...", 12 ); + $this->fatalError( "Batch size is too low...", 12 ); } $repo = RepoGroup::singleton()->getLocalRepo(); @@ -255,10 +255,10 @@ class RefreshImageMetadata extends Maintenance { } if ( $brokenOnly && $force ) { - $this->error( 'Cannot use --broken-only and --force together. ', 2 ); + $this->fatalError( 'Cannot use --broken-only and --force together. ', 2 ); } } } -$maintClass = 'RefreshImageMetadata'; +$maintClass = RefreshImageMetadata::class; require_once RUN_MAINTENANCE_IF_MAIN;