dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a90ab3
)
bug 20612 "php deleteOldRevisions.php --delete" doesn´t work anymore. Fix regression...
author
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 8 Oct 2009 23:07:55 +0000
(23:07 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Thu, 8 Oct 2009 23:07:55 +0000
(23:07 +0000)
maintenance/deleteOldRevisions.php
patch
|
blob
|
history
diff --git
a/maintenance/deleteOldRevisions.php
b/maintenance/deleteOldRevisions.php
index
917f1ba
..
a180000
100644
(file)
--- 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 );
}