X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FPingback.php;h=c3393bcc1cecb7b780d0f3d5ac8cd51585c700ae;hp=0039d2b68c275fa165d75b251b095b9a01a9938e;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=ff2dfbe9420b2ae8a942e1b6c3baa554d4a0a513 diff --git a/includes/Pingback.php b/includes/Pingback.php index 0039d2b68c..c3393bcc1c 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 ) { @@ -228,6 +228,7 @@ class Pingback { * * The schema for the data is located at: * + * @return bool */ public function sendPingback() { if ( !$this->acquireLock() ) {