X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=f49ef88c5cd45deeef79edda6d26d7b9eb4cabc5;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hp=001800f3ba12e48c10831a33711242292d7381fb;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index 001800f3ba..f49ef88c5c 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -51,9 +51,12 @@ class ForeignDBRepo extends LocalRepo { /** @var bool */ protected $hasSharedCache; - # Other stuff + /** @var IDatabase */ protected $dbConn; + + /** @var callable */ protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ]; + /** @var callable */ protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ]; /** @@ -86,7 +89,7 @@ class ForeignDBRepo extends LocalRepo { /** * @return IDatabase */ - function getSlaveDB() { + function getReplicaDB() { return $this->getMasterDB(); } @@ -106,7 +109,7 @@ class ForeignDBRepo extends LocalRepo { ]; return function ( $index ) use ( $type, $params ) { - return DatabaseBase::factory( $type, $params ); + return Database::factory( $type, $params ); }; }