X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPingback.php;h=bd1b2a25b43912f321f65fc4fa08ba40c5d60ae8;hb=87a0b17127195742e6c64472dbfdac65b4d254d7;hp=0039d2b68c275fa165d75b251b095b9a01a9938e;hpb=a303296f2730d6279a249bde77f3e0b9b42e494f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pingback.php b/includes/Pingback.php index 0039d2b68c..bd1b2a25b4 100644 --- a/includes/Pingback.php +++ b/includes/Pingback.php @@ -72,7 +72,7 @@ class Pingback { * @return bool */ private function checkIfSent() { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $sent = $dbr->selectField( 'updatelog', '1', [ 'ul_key' => $this->key ], __METHOD__ ); return $sent !== false; @@ -168,7 +168,7 @@ class Pingback { */ private function getOrCreatePingbackId() { if ( !$this->id ) { - $id = wfGetDB( DB_SLAVE )->selectField( + $id = wfGetDB( DB_REPLICA )->selectField( 'updatelog', 'ul_value', [ 'ul_key' => 'PingBack' ] ); if ( $id == false ) {