X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FLinksUpdate.php;h=266d7687d060e863e2e9b3840318743e7c95a550;hb=8bc855d71ff995f4c055de9cfec6d7b2c8821ee4;hp=9d3309bad588917e681d52da209639b17a48c64f;hpb=36d9784b156ea4d906b73c8ae30f8ae2513e9a86;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 9d3309bad5..266d7687d0 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -497,7 +497,7 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate { $insertBatches = array_chunk( $insertions, $bSize ); foreach ( $insertBatches as $insertBatch ) { - $this->getDB()->insert( $table, $insertBatch, __METHOD__, 'IGNORE' ); + $this->getDB()->insert( $table, $insertBatch, __METHOD__, [ 'IGNORE' ] ); $lbf->commitAndWaitForReplication( __METHOD__, $this->ticket, [ 'domain' => $domainId ] ); @@ -965,7 +965,7 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate { /** * Get an array of existing inline interwiki links, as a 2-D array - * @return array (prefix => array(dbkey => 1)) + * @return array [ prefix => [ dbkey => 1 ] ] */ private function getExistingInterwikis() { $res = $this->getDB()->select( 'iwlinks', [ 'iwl_prefix', 'iwl_title' ],