X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBViaLBRepo.php;h=bcd253fb4a6b742dae7046b93e1b0dbaf2db8d84;hp=129d55aa2ab56a7acc0a4037c422ec2c0e27d977;hb=c6d1ceb90a9684fa0da758d88ba1e994fad4cffc;hpb=72b9240497311a2fa5f5b76d9e8bb953dc59853f diff --git a/includes/filerepo/ForeignDBViaLBRepo.php b/includes/filerepo/ForeignDBViaLBRepo.php index 129d55aa2a..bcd253fb4a 100644 --- a/includes/filerepo/ForeignDBViaLBRepo.php +++ b/includes/filerepo/ForeignDBViaLBRepo.php @@ -65,7 +65,7 @@ class ForeignDBViaLBRepo extends LocalRepo { /** * @return IDatabase */ - function getSlaveDB() { + function getReplicaDB() { return wfGetLB( $this->wiki )->getConnectionRef( DB_REPLICA, [], $this->wiki ); } @@ -73,7 +73,7 @@ class ForeignDBViaLBRepo extends LocalRepo { * @return Closure */ protected function getDBFactory() { - return function( $index ) { + return function ( $index ) { return wfGetLB( $this->wiki )->getConnectionRef( $index, [], $this->wiki ); }; } @@ -100,7 +100,7 @@ class ForeignDBViaLBRepo extends LocalRepo { } protected function assertWritableRepo() { - throw new MWException( get_class( $this ) . ': write operations are not supported.' ); + throw new MWException( static::class . ': write operations are not supported.' ); } public function getInfo() {