Attachments break if I call the parent?

Liam W

in memoriam 1998-2020
Ok, this is a new one!

In my latest signature addon, if I call the parent attachments break (the images don't embed).

If I remove the parent call, the images suddenly embed! This is very strange, wondering if anyone had any ideas?

This is the class I am overriding (with my code):


class UDS_ViewPublic_Thread_View extends XFCP_UDS_ViewPublic_Thread_View
    public function renderHtml()
        $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
        $bbCodeOptions = array(
                'states' => array(
                        'viewAttachments' => $this->_params['canViewAttachments']
        UDS_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['posts'], $bbCodeParser, $bbCodeOptions);

And that's that. If I remove the first line of the function, attachments work...