X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHistoryBlob.php;h=b17a2f5e2ad6a127d4e3811f48beaf1e508c991c;hb=275f977093211b5ede6ce2f4fb1301f15dcf7641;hp=87fc0122e70fa4c720c22f4ed4b170903cdc6a68;hpb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 87fc0122e7..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' ], @@ -263,7 +263,7 @@ class HistoryBlobStub { if ( !isset( $parts[1] ) || $parts[1] == '' ) { return false; } - $row->old_text = ExternalStore::fetchFromUrl( $url ); + $row->old_text = ExternalStore::fetchFromURL( $url ); } @@ -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;