mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Issue #2080 - Use correct template-loading method so wrappers work in v2.x
This commit is contained in:
@@ -381,7 +381,11 @@ class forum_post_handler
|
|||||||
|
|
||||||
$file = "forum_".$type."_template.php";
|
$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))
|
if (is_readable(THEME.$file))
|
||||||
{
|
{
|
||||||
@@ -397,6 +401,8 @@ class forum_post_handler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------- Legacy -------------------------
|
// ----------------- Legacy -------------------------
|
||||||
|
|
||||||
if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
|
if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
|
||||||
|
Reference in New Issue
Block a user