// Parse some parameters
$this->params = $this->extractRequestParams();
- $this->commentStore = new CommentStore( 'rev_comment' );
+ $this->commentStore = CommentStore::getStore();
$prop = array_flip( $this->params['prop'] );
$this->fld_ids = isset( $prop['ids'] );
$this->addFieldsIf( 'rc_patrolled', $this->fld_patrolled );
if ( $this->fld_comment || $this->fld_parsedcomment ) {
- $commentQuery = $this->commentStore->getJoin();
+ $commentQuery = $this->commentStore->getJoin( 'rev_comment' );
$this->addTables( $commentQuery['tables'] );
$this->addFields( $commentQuery['fields'] );
$this->addJoinConds( $commentQuery['joins'] );
);
if ( $userCanView ) {
- $comment = $this->commentStore->getComment( $row )->text;
+ $comment = $this->commentStore->getComment( 'rev_comment', $row )->text;
if ( $this->fld_comment ) {
$vals['comment'] = $comment;
}