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

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

xf_phantom

Well-known member
#1
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);