X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHistoryBlob.php;h=b17a2f5e2ad6a127d4e3811f48beaf1e508c991c;hb=d3660d55eda56fcd2e27b0ffaaaa23c3ae6aced7;hp=867312555096295177543b58885e9ffb55755410;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 8673125550..b17a2f5e2a 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -245,7 +245,7 @@ class HistoryBlobStub { 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;