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 "Html: Update list of $voidElements"
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
ForeignDBViaLBRepo.php
diff --git
a/includes/filerepo/ForeignDBViaLBRepo.php
b/includes/filerepo/ForeignDBViaLBRepo.php
index
357f0b9
..
55df1af
100644
(file)
--- a/
includes/filerepo/ForeignDBViaLBRepo.php
+++ b/
includes/filerepo/ForeignDBViaLBRepo.php
@@
-37,10
+37,13
@@
class ForeignDBViaLBRepo extends LocalRepo {
protected $tablePrefix;
/** @var array */
protected $tablePrefix;
/** @var array */
- protected $fileFactory =
array( 'ForeignDBFile', 'newFromTitle' )
;
+ protected $fileFactory =
[ 'ForeignDBFile', 'newFromTitle' ]
;
/** @var array */
/** @var array */
- protected $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' );
+ protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ];
+
+ /** @var bool */
+ protected $hasSharedCache;
/**
* @param array|null $info
/**
* @param array|null $info
@@
-56,14
+59,14
@@
class ForeignDBViaLBRepo extends LocalRepo {
* @return IDatabase
*/
function getMasterDB() {
* @return IDatabase
*/
function getMasterDB() {
- return wfGetDB( DB_MASTER,
array()
, $this->wiki );
+ return wfGetDB( DB_MASTER,
[]
, $this->wiki );
}
/**
* @return IDatabase
*/
function getSlaveDB() {
}
/**
* @return IDatabase
*/
function getSlaveDB() {
- return wfGetDB( DB_
SLAVE, array()
, $this->wiki );
+ return wfGetDB( DB_
REPLICA, []
, $this->wiki );
}
/**
}
/**
@@
-72,7
+75,7
@@
class ForeignDBViaLBRepo extends LocalRepo {
protected function getDBFactory() {
$wiki = $this->wiki;
return function( $index ) use ( $wiki ) {
protected function getDBFactory() {
$wiki = $this->wiki;
return function( $index ) use ( $wiki ) {
- return wfGetDB( $index,
array()
, $wiki );
+ return wfGetDB( $index,
[]
, $wiki );
};
}
};
}