1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Update forum_post.php

This commit is contained in:
rica-carv
2016-12-13 20:16:30 +00:00
committed by GitHub
parent 1ebdfb6783
commit 2b181665c4

View File

@@ -383,11 +383,13 @@ class forum_post_handler
// var_dump ($type); // var_dump ($type);
// var_dump (e107::getTemplate('forum', 'forum_'.$type)); // var_dump (e107::getTemplate('forum', 'forum_'.$type));
if($template = e107::getTemplate('forum', 'forum_'.$type)) $template = e107::getTemplate('forum', 'forum_'.$type);
{ //-- if($template = e107::getTemplate('forum', 'forum_'.$type))
//-- {
//-- $FORUM_POST_TEMPLATE = $template; //-- $FORUM_POST_TEMPLATE = $template;
} //-- }
elseif (empty($FORUMPOST) && empty($FORUMREPLYPOSTED) && empty($FORUMTHREADPOSTED)) //-- elseif (empty($FORUMPOST) && empty($FORUMREPLYPOSTED) && empty($FORUMTHREADPOSTED))
if (empty($template) && empty($FORUMPOST) && empty($FORUMREPLYPOSTED) && empty($FORUMTHREADPOSTED))
{ {
$file = "forum_".$type."_template.php"; $file = "forum_".$type."_template.php";
if (is_readable(THEME.$file)) if (is_readable(THEME.$file))