X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FdeleteBatch.php;h=9e35687dcf6491701f9f12187c4473acf6b50c34;hb=c77d8705ca68404d28a91094abd443514958a852;hp=c3cbdebcdf9bb5954c5f6c84545714230cc3766c;hpb=f036c5b324e2b2d240edf8d5eeb7fc2af3d88c47;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index c3cbdebcdf..9e35687dcf 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -108,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 { @@ -123,5 +123,5 @@ class DeleteBatch extends Maintenance { } } -$maintClass = "DeleteBatch"; +$maintClass = DeleteBatch::class; require_once RUN_MAINTENANCE_IF_MAIN;