From 3840d7d6428868241adfd84432ecf82044966f64 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Sun, 26 Aug 2018 13:38:14 +0200 Subject: [PATCH] fixes #3394 Moved loading of e_bb after the loading of the templates --- e107_handlers/bbcode_handler.php | 41 +++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/e107_handlers/bbcode_handler.php b/e107_handlers/bbcode_handler.php index b176a3e8c..f8696e0c8 100644 --- a/e107_handlers/bbcode_handler.php +++ b/e107_handlers/bbcode_handler.php @@ -551,18 +551,18 @@ class e_bbcode require(e107::coreTemplatePath('bbcode')); //correct way to load a core template. - $pref = e107::getPref('e_bb_list'); - - if (!empty($pref)) // Load the Plugin bbcode AFTER the templates, so they can modify or replace. - { - foreach($pref as $val) - { - if(is_readable(e_PLUGIN.$val."/e_bb.php")) - { - require(e_PLUGIN.$val."/e_bb.php"); - } - } - } +// $pref = e107::getPref('e_bb_list'); +// +// if (!empty($pref)) // Load the Plugin bbcode AFTER the templates, so they can modify or replace. +// { +// foreach($pref as $val) +// { +// if(is_readable(e_PLUGIN.$val."/e_bb.php")) +// { +// require(e_PLUGIN.$val."/e_bb.php"); +// } +// } +// } $temp = array(); $temp['news'] = $BBCODE_TEMPLATE_NEWSPOST; @@ -606,8 +606,21 @@ class e_bbcode // { // $BBCODE_TEMPLATE = $BBCODE_TEMPLATE; // } - - + + + $pref = e107::getPref('e_bb_list'); + + if (!empty($pref)) // Load the Plugin bbcode AFTER the templates, so they can modify or replace. + { + foreach($pref as $val) + { + if(is_readable(e_PLUGIN.$val."/e_bb.php")) + { + require(e_PLUGIN.$val."/e_bb.php"); + } + } + } + $bbcode_shortcodes = e107::getScBatch('bbcode'); $data = array(