X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fcache%2FBacklinkCache.php;h=9e6cf1ef4c27ee59385ee6cc771ea186dfacbc74;hp=8c2a19eb6756ea052dcea945704305c484aee2cb;hb=ce079cf6ad79ca8d3360817f809b219d166f9153;hpb=469a610c1ba8e77b3a557a07191b2c7a2db72844 diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index 8c2a19eb67..9e6cf1ef4c 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -137,13 +137,13 @@ class BacklinkCache { } /** - * Get the slave connection to the database + * Get the replica DB connection to the database * When non existing, will initialize the connection. - * @return DatabaseBase + * @return Database */ protected function getDB() { if ( !isset( $this->db ) ) { - $this->db = wfGetDB( DB_SLAVE ); + $this->db = wfGetDB( DB_REPLICA ); } return $this->db;