mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Issue #2080 - Use correct template-loading method so wrappers work in v2.x
This commit is contained in:
parent
6e1b1d6497
commit
e8ae9bd2c2
@ -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%"); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user