X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2Fedit.php;h=4ef73799d48bd1fd47f895f1168cf68e10bcc259;hb=3c299c93e8bac834bcf923c06c0810026d630808;hp=b67a9571626f4540117d5459f7f9d1372102ad71;hpb=cb2896f90ebef77c02c9da4067b0e56e37471092;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/edit.php b/maintenance/edit.php index b67a957162..4ef73799d4 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -31,7 +31,7 @@ require_once __DIR__ . '/Maintenance.php'; class EditCLI extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Edit an article from the command line, text is from stdin"; + $this->addDescription( 'Edit an article from the command line, text is from stdin' ); $this->addOption( 'user', 'Username', false, true, 'u' ); $this->addOption( 'summary', 'Edit summary', false, true, 's' ); $this->addOption( 'minor', 'Minor edit', false, false, 'm' ); @@ -54,7 +54,7 @@ class EditCLI extends Maintenance { $noRC = $this->hasOption( 'no-rc' ); if ( $userName === false ) { - $wgUser = User::newSystemUser( 'Maintenance script', array( 'steal' => true ) ); + $wgUser = User::newSystemUser( 'Maintenance script', [ 'steal' => true ] ); } else { $wgUser = User::newFromName( $userName ); }