X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FformatInstallDoc.php;h=dbaeb867d29b98d021eb68861d36404d99c779f5;hp=e2b3c4199d726765a97641a0e09b570b2a290091;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=1a8daf2c07e31337d83ee39b42873373023c8d40 diff --git a/maintenance/formatInstallDoc.php b/maintenance/formatInstallDoc.php index e2b3c4199d..dbaeb867d2 100644 --- a/maintenance/formatInstallDoc.php +++ b/maintenance/formatInstallDoc.php @@ -41,8 +41,7 @@ class MaintenanceFormatInstallDoc extends Maintenance { $fileName = $this->getArg( 0 ); $inFile = fopen( $fileName, 'r' ); if ( !$inFile ) { - $this->error( "Unable to open input file \"$fileName\"" ); - exit( 1 ); + $this->fatalError( "Unable to open input file \"$fileName\"" ); } } else { $inFile = STDIN; @@ -52,8 +51,7 @@ class MaintenanceFormatInstallDoc extends Maintenance { $fileName = $this->getOption( 'outfile' ); $outFile = fopen( $fileName, 'w' ); if ( !$outFile ) { - $this->error( "Unable to open output file \"$fileName\"" ); - exit( 1 ); + $this->fatalError( "Unable to open output file \"$fileName\"" ); } } else { $outFile = STDOUT; @@ -74,5 +72,5 @@ class MaintenanceFormatInstallDoc extends Maintenance { } } -$maintClass = 'MaintenanceFormatInstallDoc'; +$maintClass = MaintenanceFormatInstallDoc::class; require_once RUN_MAINTENANCE_IF_MAIN;