X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=maintenance%2Fedit.php;h=4ef73799d48bd1fd47f895f1168cf68e10bcc259;hb=28b80e55c2a7d081a79bf6c5ae67c12d27e64cdb;hp=b67a9571626f4540117d5459f7f9d1372102ad71;hpb=4618f70793d1178ca4c646ef397cf17b1cc70b44;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 ); }