X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FimportTextFiles.php;h=e926cfd2b789ea4385175c9747dd2e0600599089;hb=d1c0589f6d17419991648f60dffaf8c762df69fc;hp=70b65744db3a8b993ea23faa080d29942efb4b6c;hpb=d4ecfc1a5cd83fbd1afce89646376b3937aea299;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importTextFiles.php b/maintenance/importTextFiles.php index 70b65744db..e926cfd2b7 100644 --- a/maintenance/importTextFiles.php +++ b/maintenance/importTextFiles.php @@ -57,7 +57,7 @@ class ImportTextFiles extends Maintenance { // Get all the arguments. A loop is required since Maintenance doesn't // suppport an arbitrary number of arguments. - $files = array(); + $files = []; $i = 0; while ( $arg = $this->getArg( $i++ ) ) { if ( file_exists( $arg ) ) { @@ -71,7 +71,7 @@ class ImportTextFiles extends Maintenance { $this->output( "Importing $count pages...\n" ); if ( $userName === false ) { - $user = User::newSystemUser( 'Maintenance script', array( 'steal' => true ) ); + $user = User::newSystemUser( 'Maintenance script', [ 'steal' => true ] ); } else { $user = User::newFromName( $userName ); }