X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignDBRepo.php;h=3e8850823ef5464af7fb02e2ca12f0da3b23e87e;hp=7fb7a0e6da08bba933b8e6716cbcbce7374aa526;hb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;hpb=acf2e7603c4de9ebe42563292f9587b5f8808cf1 diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index 7fb7a0e6da..3e8850823e 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -89,7 +89,7 @@ class ForeignDBRepo extends LocalRepo { /** * @return IDatabase */ - function getSlaveDB() { + function getReplicaDB() { return $this->getMasterDB(); } @@ -138,7 +138,7 @@ class ForeignDBRepo 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.' ); } /**