1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Added option to send custom template code directly to bbarea() function.

This commit is contained in:
Cameron 2014-01-06 00:32:46 -08:00
parent 39e3a1b021
commit f2ff881639

View File

@ -517,6 +517,11 @@ class e_bbcode
{
$BBCODE_TEMPLATE = $temp[$template];
}
elseif(strpos($template,"{")!==false) // custom template provided manually. eg. $template = "<div class='btn-group inline-text'>{BB=link}{BB=b}{BB=i}{BB=u}{BB=img}{BB=format}</div>"
{
$BBCODE_TEMPLATE = $template;
$template = 'comment';
}
else
{
$BBCODE_TEMPLATE = $BBCODE_TEMPLATE;