bug 20612 "php deleteOldRevisions.php --delete" doesn´t work anymore. Fix regression...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 8 Oct 2009 23:07:55 +0000 (23:07 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 8 Oct 2009 23:07:55 +0000 (23:07 +0000)
maintenance/deleteOldRevisions.php

index 917f1ba..a180000 100644 (file)
@@ -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 );
        }