X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcreateAndPromote.php;h=aa25ee602248c2881fa705bfee39778140c9ba72;hb=dc7326ad3e86b8fe659b60d9cfff8c157ab55975;hp=94a18767e627e59cee150e3f67d7ef724bbf9ed5;hpb=dfc977826c591f1087159c4794bab254b9cb34bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index 94a18767e6..aa25ee6022 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -1,6 +1,6 @@ */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** - * Maintenance script to create an account and grant it administrator rights. + * Maintenance script to create an account and grant it rights. * * @ingroup Maintenance */ class CreateAndPromote extends Maintenance { - static $permitRoles = array( 'sysop', 'bureaucrat' ); + static $permitRoles = array( 'sysop', 'bureaucrat', 'bot' ); public function __construct() { parent::__construct(); @@ -42,7 +42,7 @@ class CreateAndPromote extends Maintenance { $this->addOption( $role, "Add the account to the {$role} group" ); } $this->addArg( "username", "Username of new user" ); - $this->addArg( "password", "Password to set (not required if --force is used)", false); + $this->addArg( "password", "Password to set (not required if --force is used)", false ); } public function execute() { @@ -114,4 +114,4 @@ class CreateAndPromote extends Maintenance { } $maintClass = "CreateAndPromote"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;