xf_phantom
Well-known member
I'm getting bored of using
Why not create a new method inXenForo_ViewPublic_Base XenForo_View returning the "base" parser.
PHP:
XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
Why not create a new method in
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