Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / includes / Pingback.php
index 0039d2b..c3393bc 100644 (file)
@@ -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:
         * <https://meta.wikimedia.org/wiki/Schema:MediaWikiPingback>
+        * @return bool
         */
        public function sendPingback() {
                if ( !$this->acquireLock() ) {