X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteBatch.php;h=9e35687dcf6491701f9f12187c4473acf6b50c34;hb=1194189297da6d18aa66ab954b4af5f5f6099755;hp=eceadc11119c6aabe4e0101d19317c53439373b4;hpb=bc6ed2ba24a8691ad6d6cc321a43720bcfb770e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index eceadc1111..9e35687dcf 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -83,9 +83,8 @@ class DeleteBatch extends Maintenance { $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++ ) { - // @codingStandardsIgnoreEnd $line = trim( fgets( $file ) ); if ( $line == '' ) { continue; @@ -109,7 +108,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 { @@ -124,5 +123,5 @@ class DeleteBatch extends Maintenance { } } -$maintClass = "DeleteBatch"; +$maintClass = DeleteBatch::class; require_once RUN_MAINTENANCE_IF_MAIN;