Index: trunk/phase3/maintenance/undelete.php |
— | — | @@ -27,16 +27,16 @@ |
28 | 28 | public function __construct() { |
29 | 29 | parent::__construct(); |
30 | 30 | $this->mDescription = "Undelete a page"; |
31 | | - $this->addOption( 'u', 'The user to perform the undeletion', false, true ); |
32 | | - $this->addOption( 'r', 'The reason to undelete', false, true ); |
| 31 | + $this->addOption( 'user', 'The user to perform the undeletion', false, true, 'u' ); |
| 32 | + $this->addOption( 'reason', 'The reason to undelete', false, true, 'r' ); |
33 | 33 | $this->addArg( 'pagename', 'Page to undelete' ); |
34 | 34 | } |
35 | 35 | |
36 | 36 | public function execute() { |
37 | 37 | global $wgUser; |
38 | 38 | |
39 | | - $user = $this->getOption( 'u', 'Command line script' ); |
40 | | - $reason = $this->getOption( 'r', '' ); |
| 39 | + $user = $this->getOption( 'user', 'Command line script' ); |
| 40 | + $reason = $this->getOption( 'reason', '' ); |
41 | 41 | $pageName = $this->getArg(); |
42 | 42 | |
43 | 43 | $title = Title::newFromText( $pageName ); |