X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FBacklinkCache.php;h=9dfabfd089644b73a87d435bd5f6f7cd14a3a5ee;hb=b1fae297981bf99cb17e424cc640ef75e98175d5;hp=a954d9fc85e14c8cf3d3580b64a191f89cbf3cd0;hpb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index a954d9fc85..9dfabfd089 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -48,7 +48,7 @@ class BacklinkCache { * > (string) links table name * > (int) batch size * > 'numRows' : Number of rows for this link table - * > 'batches' : array( $start, $end ) + * > 'batches' : [ $start, $end ] * * @see BacklinkCache::partitionResult() * @@ -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 */ protected function getDB() { if ( !isset( $this->db ) ) { - $this->db = wfGetDB( DB_SLAVE ); + $this->db = wfGetDB( DB_REPLICA ); } return $this->db; @@ -279,7 +279,7 @@ class BacklinkCache { $conds = [ "{$prefix}_namespace" => $this->title->getNamespace(), "{$prefix}_title" => $this->title->getDBkey(), - $this->getDb()->makeList( [ + $this->getDB()->makeList( [ "{$prefix}_interwiki" => '', "{$prefix}_interwiki IS NULL", ], LIST_OR ),