X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHistoryBlob.php;h=3d86201c94657958addfd9681e64f22cdb63e381;hb=e7b57d881a;hp=867312555096295177543b58885e9ffb55755410;hpb=2379efaad6bddc93e7f08ca42f017890169b44e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 8673125550..3d86201c94 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -239,13 +239,13 @@ class HistoryBlobStub { } /** - * @return string + * @return string|false */ function getText() { if ( isset( self::$blobCache[$this->mOldId] ) ) { $obj = self::$blobCache[$this->mOldId]; } else { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $row = $dbr->selectRow( 'text', [ 'old_flags', 'old_text' ], @@ -336,7 +336,7 @@ class HistoryBlobCurStub { * @return string|bool */ function getText() { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $row = $dbr->selectRow( 'cur', [ 'cur_text' ], [ 'cur_id' => $this->mCurId ] ); if ( !$row ) { return false;