From 434272cedf1ee74b796921c7cf9305ba66189dc7 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 8 Oct 2009 23:07:55 +0000 Subject: [PATCH] =?utf8?q?bug=2020612=20"php=20deleteOldRevisions.php=20--?= =?utf8?q?delete"=20doesn=C2=B4t=20work=20anymore.=20Fix=20regression=20fr?= =?utf8?q?om=20maintenance-work.=20If=20no=20pageids=20are=20specified,=20?= =?utf8?q?perform=20on=20all=20pageids?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- maintenance/deleteOldRevisions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/maintenance/deleteOldRevisions.php b/maintenance/deleteOldRevisions.php index 917f1ba9f1..a180000d70 100644 --- a/maintenance/deleteOldRevisions.php +++ b/maintenance/deleteOldRevisions.php @@ -29,13 +29,11 @@ class DeleteOldRevisions extends Maintenance { parent::__construct(); $this->mDescription = "Delete old (non-current) revisions from the database"; $this->addOption( 'delete', 'Actually perform the deletion' ); + $this->addOption( 'page_id', 'List of page ids to work on', false ); } public function execute() { $this->output( "Delete old revisions\n\n" ); - if( count( $this->mArgs ) < 1 ) { - $this->error( "Must pass at least 1 page_id", true ); - } $this->doDelete( $this->hasOption( 'delete' ), $this->mArgs ); } -- 2.20.1