From e8ae9bd2c2c98c91865cdd2f8cd4b3c5d04b6fa4 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 29 Nov 2016 12:08:14 -0800 Subject: [PATCH] Issue #2080 - Use correct template-loading method so wrappers work in v2.x --- e107_plugins/forum/forum_post.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index c0147be3f..ea7433646 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -381,7 +381,11 @@ class forum_post_handler $file = "forum_".$type."_template.php"; - if (empty($FORUMPOST) && empty($FORUMREPLYPOSTED) && empty($FORUMTHREADPOSTED)) + if($template = e107::getTemplate('forum', 'forum_post')) + { + $FORUM_POST_TEMPLATE = $template; + } + elseif (empty($FORUMPOST) && empty($FORUMREPLYPOSTED) && empty($FORUMTHREADPOSTED)) { if (is_readable(THEME.$file)) { @@ -397,6 +401,8 @@ class forum_post_handler } } + + // ----------------- Legacy ------------------------- if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }