X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateNormalizerDataAr.php;h=90ca41e2a6eee95292e6ce790a58d6f4cbc15133;hb=fdb07d74e63ed3f0c09e548ae43b23b147bb54e6;hp=34903de1dbe76f89520d546b0f6520c7373a107d;hpb=58cb1f824ac75c3b58ba19d1e88c1b38f9dc1fab;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/generateNormalizerDataAr.php b/maintenance/language/generateNormalizerDataAr.php index 34903de1db..90ca41e2a6 100644 --- a/maintenance/language/generateNormalizerDataAr.php +++ b/maintenance/language/generateNormalizerDataAr.php @@ -46,22 +46,19 @@ class GenerateNormalizerDataAr extends Maintenance { if ( !$this->hasOption( 'unicode-data-file' ) ) { $dataFile = 'UnicodeData.txt'; if ( !file_exists( $dataFile ) ) { - $this->error( "Unable to find UnicodeData.txt. Please specify " . + $this->fatalError( "Unable to find UnicodeData.txt. Please specify " . "its location with --unicode-data-file=" ); - exit( 1 ); } } else { $dataFile = $this->getOption( 'unicode-data-file' ); if ( !file_exists( $dataFile ) ) { - $this->error( 'Unable to find the specified data file.' ); - exit( 1 ); + $this->fatalError( 'Unable to find the specified data file.' ); } } $file = fopen( $dataFile, 'r' ); if ( !$file ) { - $this->error( 'Unable to open the data file.' ); - exit( 1 ); + $this->fatalError( 'Unable to open the data file.' ); } // For the file format, see http://www.unicode.org/reports/tr44/ @@ -130,5 +127,5 @@ class GenerateNormalizerDataAr extends Maintenance { } } -$maintClass = 'GenerateNormalizerDataAr'; +$maintClass = GenerateNormalizerDataAr::class; require_once RUN_MAINTENANCE_IF_MAIN;