dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
ForeignDBRepo.php
diff --git
a/includes/filerepo/ForeignDBRepo.php
b/includes/filerepo/ForeignDBRepo.php
index
001800f
..
f49ef88
100644
(file)
--- a/
includes/filerepo/ForeignDBRepo.php
+++ b/
includes/filerepo/ForeignDBRepo.php
@@
-51,9
+51,12
@@
class ForeignDBRepo extends LocalRepo {
/** @var bool */
protected $hasSharedCache;
/** @var bool */
protected $hasSharedCache;
- # Other stuff
+ /** @var IDatabase */
protected $dbConn;
protected $dbConn;
+
+ /** @var callable */
protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ];
protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ];
+ /** @var callable */
protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ];
/**
protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ];
/**
@@
-86,7
+89,7
@@
class ForeignDBRepo extends LocalRepo {
/**
* @return IDatabase
*/
/**
* @return IDatabase
*/
- function get
Slave
DB() {
+ function get
Replica
DB() {
return $this->getMasterDB();
}
return $this->getMasterDB();
}
@@
-106,7
+109,7
@@
class ForeignDBRepo extends LocalRepo {
];
return function ( $index ) use ( $type, $params ) {
];
return function ( $index ) use ( $type, $params ) {
- return Database
Base
::factory( $type, $params );
+ return Database::factory( $type, $params );
};
}
};
}