public function __construct() {
parent::__construct();
- $this->mDescription = "Delete one or more revisions by moving them to the archive table";
+ $this->addDescription( 'Delete one or more revisions by moving them to the archive table' );
}
public function execute() {
$this->output( "Deleting revision(s) " . implode( ',', $this->mArgs ) .
" from " . wfWikiID() . "...\n" );
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
$affected = 0;
foreach ( $this->mArgs as $revID ) {