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
Hygiene: Use “OOUI” as unified name in build and code documentation
[lhc/web/wiklou.git]
/
maintenance
/
createCommonPasswordCdb.php
diff --git
a/maintenance/createCommonPasswordCdb.php
b/maintenance/createCommonPasswordCdb.php
index
f7e0c0f
..
ef5a30d
100644
(file)
--- a/
maintenance/createCommonPasswordCdb.php
+++ b/
maintenance/createCommonPasswordCdb.php
@@
-60,12
+60,12
@@
class GenerateCommonPassword extends Maintenance {
$outfile = $this->getArg( 1 );
if ( !is_readable( $infile ) && $infile !== 'php://stdin' ) {
$outfile = $this->getArg( 1 );
if ( !is_readable( $infile ) && $infile !== 'php://stdin' ) {
- $this->
error( "Cannot open input file $infile for reading", 1
);
+ $this->
fatalError( "Cannot open input file $infile for reading"
);
}
$file = fopen( $infile, 'r' );
if ( $file === false ) {
}
$file = fopen( $infile, 'r' );
if ( $file === false ) {
- $this->
error( "Cannot read input file $infile", 1
);
+ $this->
fatalError( "Cannot read input file $infile"
);
}
try {
}
try {
@@
-109,10
+109,10
@@
class GenerateCommonPassword extends Maintenance {
" (out of $i) passwords to $outfile\n"
);
} catch ( \Cdb\Exception $e ) {
" (out of $i) passwords to $outfile\n"
);
} catch ( \Cdb\Exception $e ) {
- $this->
e
rror( "Error writing cdb file: " . $e->getMessage(), 2 );
+ $this->
fatalE
rror( "Error writing cdb file: " . $e->getMessage(), 2 );
}
}
}
}
}
}
-$maintClass =
"GenerateCommonPassword"
;
+$maintClass =
GenerateCommonPassword::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;