mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +02:00
fixes #3317 added bbcode template "forum"
Fixed issue with bbcode youtube to display the mediamanager only if the current user is an admin. Otherwise it will just add the plain bbcode string "[youtube]dkhkj[/youtube]" to the textarea.
This commit is contained in:
@@ -547,6 +547,7 @@ class e_bbcode
|
||||
$BBCODE_TEMPLATE_ADMIN = '';
|
||||
$BBCODE_TEMPLATE_COMMENT = '';
|
||||
$BBCODE_TEMPLATE_SIGNATURE = '';
|
||||
$BBCODE_TEMPLATE_FORUM = '';
|
||||
|
||||
|
||||
require(e107::coreTemplatePath('bbcode')); //correct way to load a core template.
|
||||
@@ -574,7 +575,8 @@ class e_bbcode
|
||||
$temp['maintenance']= $BBCODE_TEMPLATE_ADMIN;
|
||||
$temp['comment'] = $BBCODE_TEMPLATE_COMMENT;
|
||||
$temp['signature'] = $BBCODE_TEMPLATE_SIGNATURE;
|
||||
|
||||
$temp['forum'] = $BBCODE_TEMPLATE_FORUM;
|
||||
|
||||
if(isset($temp[$template]))
|
||||
{
|
||||
$BBCODE_TEMPLATE = $temp[$template];
|
||||
|
Reference in New Issue
Block a user