From 956288381e2eaa01dfbb3791ffc5ca83423a2c66 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Wed, 16 Nov 2016 20:52:53 +0000 Subject: [PATCH] Enable templating of viewtopic caption Enable templating of viewtopic caption --- e107_plugins/forum/forum_viewtopic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index d3af3edc9..3dd2e673d 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -211,6 +211,7 @@ if(deftrue('BOOTSTRAP',false)) // print_a($FORUM_VIEWTOPIC_TEMPLATE); + $FORUMCAPTION = $FORUM_VIEWTOPIC_TEMPLATE['caption']; $FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start']; $FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread']; $FORUMEND = $FORUM_VIEWTOPIC_TEMPLATE['end']; @@ -615,7 +616,7 @@ require_once (HEADERF); if ($forum->prefs->get('enclose')) { - $forumTitle = e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME); + $forumTitle = varset($FORUMCAPTION) ? $tp->parseTemplate($FORUMCAPTION, TRUE, $sc) : e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME); $ns->tablerender($forumTitle, $mes->render().$forumstring, array('forum_viewtopic', 'main')); } else @@ -1090,4 +1091,4 @@ class e107ForumThread } } -?> \ No newline at end of file +?>