X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FformatInstallDoc.php;h=dbaeb867d29b98d021eb68861d36404d99c779f5;hb=113431287a8a14ea0d3baa8d40b1adcc2291b8e5;hp=600ca9768e7bcfb6ca1140ed6e5b16329dadaa2f;hpb=944e196c02efbe6838827d4cf1e332a7919e5cdb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/formatInstallDoc.php b/maintenance/formatInstallDoc.php index 600ca9768e..dbaeb867d2 100644 --- a/maintenance/formatInstallDoc.php +++ b/maintenance/formatInstallDoc.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ .'/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that formats RELEASE-NOTE file to wiki text or HTML markup. @@ -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,7 +72,5 @@ class MaintenanceFormatInstallDoc extends Maintenance { } } -$maintClass = 'MaintenanceFormatInstallDoc'; -require_once( RUN_MAINTENANCE_IF_MAIN ); - - +$maintClass = MaintenanceFormatInstallDoc::class; +require_once RUN_MAINTENANCE_IF_MAIN;