X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcopyJobQueue.php;h=dc70e9c20329402687b548f4058e6c9bb9785a99;hb=01cdb1762c7207bd261ad03726a88cb9afc97bfb;hp=08e40fd6485587b7144513f24b8df16d19cdcfa7;hpb=eaea890a0966a31292f7ccafebaa7b04182abc73;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/copyJobQueue.php b/maintenance/copyJobQueue.php index 08e40fd648..dc70e9c203 100644 --- a/maintenance/copyJobQueue.php +++ b/maintenance/copyJobQueue.php @@ -48,9 +48,9 @@ class CopyJobQueue extends Maintenance { $dstKey = $this->getOption( 'dst' ); if ( !isset( $wgJobQueueMigrationConfig[$srcKey] ) ) { - $this->error( "\$wgJobQueueMigrationConfig not set for '$srcKey'.", 1 ); + $this->fatalError( "\$wgJobQueueMigrationConfig not set for '$srcKey'." ); } elseif ( !isset( $wgJobQueueMigrationConfig[$dstKey] ) ) { - $this->error( "\$wgJobQueueMigrationConfig not set for '$dstKey'.", 1 ); + $this->fatalError( "\$wgJobQueueMigrationConfig not set for '$dstKey'." ); } $types = ( $this->getOption( 'type' ) === 'all' ) @@ -94,5 +94,5 @@ class CopyJobQueue extends Maintenance { } } -$maintClass = 'CopyJobQueue'; +$maintClass = CopyJobQueue::class; require_once RUN_MAINTENANCE_IF_MAIN;