X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fsql.php;h=1aceaced52a4329ac56a882b7191f6373bdf076d;hb=b114e482f08e460bd4e4f894700330fb458112eb;hp=f0899729b92ead91971c58323d599e7070777377;hpb=630a39ce6b686872db84c2c2d022bb6c26bf23a8;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 {