X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsql.php;h=1aceaced52a4329ac56a882b7191f6373bdf076d;hb=96519cfa9746652c143d927b0089324e1f86f6c0;hp=f0899729b92ead91971c58323d599e7070777377;hpb=592637225a4d5db5abcdc288d838c160284eef08;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sql.php b/maintenance/sql.php index f0899729b9..1aceaced52 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -71,7 +71,7 @@ class MwSql extends Maintenance { $index = DB_MASTER; } // Get a DB handle (with this wiki's DB selected) from the appropriate load balancer - $db = $lb->getConnection( $index, array(), $wiki ); + $db = $lb->getConnection( $index, [], $wiki ); if ( $this->hasOption( 'slave' ) && $db->getLBInfo( 'master' ) !== null ) { $this->error( "The server selected ({$db->getServer()}) is not a slave.", 1 ); } @@ -82,7 +82,7 @@ class MwSql extends Maintenance { $this->error( "Unable to open input file", true ); } - $error = $db->sourceStream( $file, false, array( $this, 'sqlPrintResult' ) ); + $error = $db->sourceStream( $file, false, [ $this, 'sqlPrintResult' ] ); if ( $error !== true ) { $this->error( $error, true ); } else {