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 "Enable email settings for ApiBlockTest::testBlockWithEmailBlock"
[lhc/web/wiklou.git]
/
maintenance
/
deleteBatch.php
diff --git
a/maintenance/deleteBatch.php
b/maintenance/deleteBatch.php
index
09e8211
..
4f9e488
100644
(file)
--- a/
maintenance/deleteBatch.php
+++ b/
maintenance/deleteBatch.php
@@
-69,8
+69,8
@@
class DeleteBatch extends Maintenance {
}
$wgUser = $user;
}
$wgUser = $user;
- if ( $this->hasArg() ) {
- $file = fopen( $this->getArg(), 'r' );
+ if ( $this->hasArg(
0
) ) {
+ $file = fopen( $this->getArg(
0
), 'r' );
} else {
$file = $this->getStdin();
}
} else {
$file = $this->getStdin();
}
@@
-80,8
+80,6
@@
class DeleteBatch extends Maintenance {
$this->fatalError( "Unable to read file, exiting" );
}
$this->fatalError( "Unable to read file, exiting" );
}
- $dbw = $this->getDB( DB_MASTER );
-
# Handle each entry
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$line = trim( fgets( $file ) );
# Handle each entry
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$line = trim( fgets( $file ) );