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 "Make copyTestData work on postgres"
[lhc/web/wiklou.git]
/
maintenance
/
deleteBatch.php
diff --git
a/maintenance/deleteBatch.php
b/maintenance/deleteBatch.php
index
0f3c506
..
fe3bea0
100644
(file)
--- a/
maintenance/deleteBatch.php
+++ b/
maintenance/deleteBatch.php
@@
-80,10
+80,7
@@
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
# Handle each entry
- // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$line = trim( fgets( $file ) );
if ( $line == '' ) {
for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$line = trim( fgets( $file ) );
if ( $line == '' ) {
@@
-108,7
+105,7
@@
class DeleteBatch extends Maintenance {
}
$page = WikiPage::factory( $title );
$error = '';
}
$page = WikiPage::factory( $title );
$error = '';
- $success = $page->doDeleteArticle( $reason, false,
0, true, $error, $user
);
+ $success = $page->doDeleteArticle( $reason, false,
null, null, $error, $user, true
);
if ( $success ) {
$this->output( " Deleted!\n" );
} else {
if ( $success ) {
$this->output( " Deleted!\n" );
} else {