X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteBatch.php;h=fe3bea05deb250750a7e7cf61d4d3564c61be86d;hb=6c1cfca4c3536e05008e51f5754900574c36adb4;hp=0f3c506734e4907735508531199030547c964cab;hpb=577f3d79115173f4dd16bb46f6d0ef2c82b55add;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index 0f3c506734..fe3bea05de 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -80,10 +80,7 @@ class DeleteBatch extends Maintenance { $this->fatalError( "Unable to read file, exiting" ); } - $dbw = $this->getDB( DB_MASTER ); - # Handle each entry - // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall 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 = ''; - $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 {