X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateExtensionJsonSchema.php;h=6233d5b876f56376d9b7e769114d6c7d9449538b;hb=11ee7f78da9776db26098642a151a288f98bea14;hp=427769f19f1a164aa18d69eefd926607ec7b08ab;hpb=4d0d2dd13670ba9059e37136039908a7a86a1dd7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateExtensionJsonSchema.php b/maintenance/updateExtensionJsonSchema.php index 427769f19f..6233d5b876 100644 --- a/maintenance/updateExtensionJsonSchema.php +++ b/maintenance/updateExtensionJsonSchema.php @@ -14,12 +14,12 @@ class UpdateExtensionJsonSchema extends Maintenance { public function execute() { $filename = $this->getArg( 0 ); if ( !is_readable( $filename ) ) { - $this->error( "Error: Unable to read $filename", 1 ); + $this->fatalError( "Error: Unable to read $filename" ); } $json = FormatJson::decode( file_get_contents( $filename ), true ); if ( $json === null ) { - $this->error( "Error: Invalid JSON", 1 ); + $this->fatalError( "Error: Invalid JSON" ); } if ( !isset( $json['manifest_version'] ) ) { @@ -65,5 +65,5 @@ class UpdateExtensionJsonSchema extends Maintenance { } } -$maintClass = 'UpdateExtensionJsonSchema'; +$maintClass = UpdateExtensionJsonSchema::class; require_once RUN_MAINTENANCE_IF_MAIN;