dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SECURITY: Don't allow loading unprotected JS files
[lhc/web/wiklou.git]
/
maintenance
/
language
/
generateNormalizerDataAr.php
diff --git
a/maintenance/language/generateNormalizerDataAr.php
b/maintenance/language/generateNormalizerDataAr.php
index
34903de
..
90ca41e
100644
(file)
--- 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 ) ) {
if ( !$this->hasOption( 'unicode-data-file' ) ) {
$dataFile = 'UnicodeData.txt';
if ( !file_exists( $dataFile ) ) {
- $this->
e
rror( "Unable to find UnicodeData.txt. Please specify " .
+ $this->
fatalE
rror( "Unable to find UnicodeData.txt. Please specify " .
"its location with --unicode-data-file=<FILE>" );
"its location with --unicode-data-file=<FILE>" );
- exit( 1 );
}
} else {
$dataFile = $this->getOption( 'unicode-data-file' );
if ( !file_exists( $dataFile ) ) {
}
} 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 ) {
}
}
$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/
}
// 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;
require_once RUN_MAINTENANCE_IF_MAIN;