X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FmigrateFileRepoLayout.php;h=6188ea14b9821f32a2261500aea2b2d040e434fb;hp=b2cce3ea58936ef17db713a3970ddb4b07bd8961;hb=d46835ef4f877b03a9d48aa392dc23ae37042756;hpb=f5baf27bb89a4306e77e7ad1183791f775888199 diff --git a/maintenance/migrateFileRepoLayout.php b/maintenance/migrateFileRepoLayout.php index b2cce3ea58..6188ea14b9 100644 --- a/maintenance/migrateFileRepoLayout.php +++ b/maintenance/migrateFileRepoLayout.php @@ -43,11 +43,11 @@ class MigrateFileRepoLayout extends Maintenance { public function execute() { $oldLayout = $this->getOption( 'oldlayout' ); if ( !in_array( $oldLayout, [ 'name', 'sha1' ] ) ) { - $this->error( "Invalid old layout.", 1 ); + $this->fatalError( "Invalid old layout." ); } $newLayout = $this->getOption( 'newlayout' ); if ( !in_array( $newLayout, [ 'name', 'sha1' ] ) ) { - $this->error( "Invalid new layout.", 1 ); + $this->fatalError( "Invalid new layout." ); } $since = $this->getOption( 'since' ); @@ -235,5 +235,5 @@ class MigrateFileRepoLayout extends Maintenance { } } -$maintClass = 'MigrateFileRepoLayout'; +$maintClass = MigrateFileRepoLayout::class; require_once RUN_MAINTENANCE_IF_MAIN;