From: Chad Horohoe Date: Thu, 8 Oct 2009 23:07:55 +0000 (+0000) Subject: bug 20612 "php deleteOldRevisions.php --delete" doesn´t work anymore. Fix regression... X-Git-Tag: 1.31.0-rc.0~39337 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=434272cedf1ee74b796921c7cf9305ba66189dc7;p=lhc%2Fweb%2Fwiklou.git bug 20612 "php deleteOldRevisions.php --delete" doesn´t work anymore. Fix regression from maintenance-work. If no pageids are specified, perform on all pageids --- 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 ); }