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

Duplicate False Method used in XenForo_DataWriter_NewsFeed

R

ragtek

Guest
#1
The getExistinData method doesn't work.

PHP:
    protected function _getExistingData($data)
    {
        if (!$newsFeedId = $this->_getExistingPrimaryKey($data))
        {
            return false;
        }

        return array('xf_news_feed' => $this->_getNewsFeedModel()->getNewsFeedById($newsFeedId));
    }
should be

PHP:
    protected function _getExistingData($data)
    {
        if (!$newsFeedId = $this->_getExistingPrimaryKey($data))
        {
            return false;
        }

        return array('xf_news_feed' => $this->_getNewsFeedModel()->getNewsFeedItemById($newsFeedId));
    }
xfrocks found this and it should be fixed ( http://xenforo.com/community/thread...o_datawriter_newsfeed-_getexistingdata.15880/ ) but it isn't in 1.0.4 :(