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
Merge "RevisionStore tests for current behaviour of getTitle"
[lhc/web/wiklou.git]
/
maintenance
/
deleteBatch.php
diff --git
a/maintenance/deleteBatch.php
b/maintenance/deleteBatch.php
index
0020446
..
c3cbdeb
100644
(file)
--- a/
maintenance/deleteBatch.php
+++ b/
maintenance/deleteBatch.php
@@
-65,7
+65,7
@@
class DeleteBatch extends Maintenance {
$user = User::newFromName( $username );
}
if ( !$user ) {
$user = User::newFromName( $username );
}
if ( !$user ) {
- $this->
error( "Invalid username", true
);
+ $this->
fatalError( "Invalid username"
);
}
$wgUser = $user;
}
$wgUser = $user;
@@
-77,15
+77,14
@@
class DeleteBatch extends Maintenance {
# Setup
if ( !$file ) {
# Setup
if ( !$file ) {
- $this->
error( "Unable to read file, exiting", true
);
+ $this->
fatalError( "Unable to read file, exiting"
);
}
$dbw = $this->getDB( DB_MASTER );
# Handle each entry
}
$dbw = $this->getDB( DB_MASTER );
# Handle each entry
- //
@codingStandardsIgnoreStart Ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
+ //
phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
- // @codingStandardsIgnoreEnd
$line = trim( fgets( $file ) );
if ( $line == '' ) {
continue;
$line = trim( fgets( $file ) );
if ( $line == '' ) {
continue;