diff options
Diffstat (limited to 'includes/changes')
-rw-r--r-- | includes/changes/RecentChange.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index b0d722a9b333..b40fbfd510bc 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -1109,9 +1109,10 @@ class RecentChange implements Taggable { // rc_deleted MUST be set $this->mAttribs['rc_deleted'] = $row->rc_deleted; + $dbr = MediaWikiServices::getInstance()->getConnectionProvider()->getReplicaDatabase(); $comment = MediaWikiServices::getInstance()->getCommentStore() // Legacy because $row may have come from self::selectFields() - ->getCommentLegacy( wfGetDB( DB_REPLICA ), 'rc_comment', $row, true ) + ->getCommentLegacy( $dbr, 'rc_comment', $row, true ) ->text; $this->mAttribs['rc_comment'] = &$comment; $this->mAttribs['rc_comment_text'] = &$comment; |