class Undelete extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Undelete a page";
+ $this->addDescription( 'Undelete a page' );
$this->addOption( 'user', 'The user to perform the undeletion', false, true, 'u' );
$this->addOption( 'reason', 'The reason to undelete', false, true, 'r' );
$this->addArg( 'pagename', 'Page to undelete' );