X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=4b331389b7b954c31c9c89289c4b60cedc09cfae;hb=ae58991566bd7f666982cdfcac9c84a79173d6ab;hp=bce3005c673bd74a80d1ef78d9728645ae9304c4;hpb=237d3271fd313ebe09858a5c442a91216a7b61cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index bce3005c67..4b331389b7 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -58,9 +58,9 @@ class ForeignDBRepo extends LocalRepo { protected $dbConn; /** @var callable */ - protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ]; + protected $fileFactory = [ ForeignDBFile::class, 'newFromTitle' ]; /** @var callable */ - protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ]; + protected $fileFromRowFactory = [ ForeignDBFile::class, 'newFromRow' ]; /** * @param array|null $info @@ -132,9 +132,8 @@ class ForeignDBRepo extends LocalRepo { function getSharedCacheKey( /*...*/ ) { if ( $this->hasSharedCache() ) { $args = func_get_args(); - array_unshift( $args, $this->dbName, $this->tablePrefix ); - return call_user_func_array( 'wfForeignMemcKey', $args ); + return wfForeignMemcKey( $this->dbName, $this->tablePrefix, ...$args ); } else { return false; }