Lack of interest New method for PublicView to return the base parser

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

xf_phantom

Well-known member
I'm getting bored of using
PHP:
XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));

Why not create a new method in XenForo_ViewPublic_Base XenForo_View returning the "base" parser.
PHP:
//instead of
$bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));

// it would become
$bbCodeParser = $this->getBbParser();
$bbCodeParser = $this->getBbParser('Wysiwyg');
$bbCodeParser = $this->getBbParser('XenForo_BbCode_Formatter_BbCode_AutoLink', false);
 
Upvote 0
Top