_getMessageIdsInDiscussion()

  • Thread starter Thread starter Syndol
  • Start date Start date
S

Syndol

Guest
In the Discussion DataWriter you have the following function which should return an array of message Ids:
PHP:
protected function _getMessageIdsInDiscussion()
{
    return array_keys($this->_getDiscussionMessages(false));
}
However, in the Thread DataWriter you extend this function as follows:
PHP:
protected function _getMessageIdsInDiscussion()
{
    return $this->_getPostModel()->getPostsInThreadSimple($this->get('thread_id'), false);
}
The extended function no longer returns just the message Ids.
There is no need to extend.
 
Back
Top Bottom