• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

_getMessageIdsInDiscussion()

S

Syndol

Guest
#1
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.