X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=099ea88d67900ac5a143008762f00a7e73c47ba7;hb=0956ad88ed0372aa8bd0a680798a192673362ef3;hp=35fa64097abc4c6f0c6192253b76360add12983b;hpb=a1c51e18af85a9ac464c5b555921e58ec422cd11;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/undelete.php b/maintenance/undelete.php index 35fa64097a..099ea88d67 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -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() {