1
0
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:
Achim Ennenbach
2018-08-09 14:05:06 +02:00
parent 604cda1f83
commit 937ef03047
3 changed files with 25 additions and 6 deletions

View File

@@ -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];