Don't include the old ExtensionMessages.php when you're building a new one. Otherwise...
[lhc/web/wiklou.git] / maintenance / undelete.php
index 35fa640..099ea88 100644 (file)
@@ -6,7 +6,7 @@
  * @ingroup Maintenance
  */
 
-require_once( "Maintenance.php" );
+require_once( dirname(__FILE__) . '/Maintenance.php' );
 
 class Undelete extends Maintenance {
        public function __construct() {
@@ -14,7 +14,7 @@ class Undelete extends Maintenance {
                $this->mDescription = "Undelete a page";
                $this->addOption( 'u', 'The user to perform the undeletion', false, true );
                $this->addOption( 'r', 'The reason to undelete', false, true );
-               $this->addArgs( array( 'pagename' ) );
+               $this->addArg( 'pagename', 'Page to undelete' );
        }
 
        public function execute() {