mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
fixes #3317 moved the forum template from core to plugin
This commit is contained in:
@@ -547,7 +547,6 @@ 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.
|
||||
@@ -575,7 +574,20 @@ 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]))
|
||||
{
|
||||
// if template not yet defined, assume that $template is the name of a plugin
|
||||
// and load the specific bbcode template from the plugin
|
||||
// see forum plugin "templates/bbcode_template.php" for an example of the definition
|
||||
$tpl = e107::getTemplate($template, 'bbcode', $template);
|
||||
if (!empty($tpl))
|
||||
{
|
||||
// If the plugin has a template defined for bbcode, add it to the list
|
||||
$temp[$template] = $tpl;
|
||||
}
|
||||
unset($tpl);
|
||||
}
|
||||
|
||||
if(isset($temp[$template]))
|
||||
{
|
||||
|
Reference in New Issue
Block a user