diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index 9464bfaf0..0716bd739 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -25,7 +25,7 @@ require_once (e_HANDLER."userclass_class.php"); require_once (e_HANDLER."ren_help.php"); require_once (e_HANDLER."comment_class.php"); -if (!$FAQ_VIEW_TEMPLATE) +if (!vartrue($FAQ_VIEW_TEMPLATE)) { if (file_exists(THEME."faqs_template.php")) { diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index 26e03fd85..17ad3b28e 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -1198,7 +1198,7 @@ class e107forum $threadInfo['thread_id'] = intval($threadInfo['thread_id']); $search = array('{THREAD_TITLE}', '{THREAD_HREF}'); - $replace = array($threadInfo['thread_name'], $e107->url->create('forum/thread/view', $threadInfo)); // $thread->threadInfo - no reference found + $replace = array(vartrue($threadInfo['thread_name']), $e107->url->create('forum/thread/view', $threadInfo)); // $thread->threadInfo - no reference found $FORUM_CRUMB['thread']['value'] = str_replace($search, $replace, $FORUM_CRUMB['thread']['value']); $FORUM_CRUMB['fieldlist'] = 'sitename,forums,parent,subparent,forum,thread'; diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index 865255a79..38a09671a 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -83,7 +83,7 @@ define('MODERATOR', USER && $forum->isModerator(USERID)); require_once(e_HANDLER.'ren_help.php'); e107::getScBatch('view', 'forum'); -e107::getScBatch('post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', $threadInfo); +e107::getScBatch('post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', vartrue($threadInfo)); $gen = new convert; $fp = new floodprotect; @@ -437,7 +437,7 @@ if (isset($_POST['update_reply'])) require_once(HEADERF); -if ($error) +if (vartrue($error)) { $ns->tablerender(LAN_20, $error); } @@ -491,7 +491,7 @@ if ($action == 'edit' || $action == 'quote') // ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //Load forumpost template -if (!$FORUMPOST) +if (!vartrue($FORUMPOST)) { if (is_readable(THEME.'forum_post_template.php')) { diff --git a/e107_plugins/forum/forum_viewforum.php b/e107_plugins/forum/forum_viewforum.php index f7b97668e..accf1b72d 100644 --- a/e107_plugins/forum/forum_viewforum.php +++ b/e107_plugins/forum/forum_viewforum.php @@ -64,7 +64,7 @@ if (!$forum->checkPerm($forumId, 'view')) $forumInfo = $forum->forumGet($forumId); $threadsViewed = $forum->threadGetUserViewed(); -if (!$FORUM_VIEW_START) +if (!vartrue($FORUM_VIEW_START)) { if (file_exists(THEME.'forum_viewforum_template.php')) { @@ -233,7 +233,7 @@ $reg_threads = 0; $unstuck = false; $threadList = $forum->forumGetThreads($forumId, $threadFrom, $view); -$subList = $forum->forumGetSubs($forum_id); +$subList = $forum->forumGetSubs(vartrue($forum_id)); $gen = new convert; $fVars->SUBFORUMS = ''; diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 57af9c1f7..054caf76f 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -138,7 +138,7 @@ if (file_exists(THEME . 'forum_design.php')) { include_once (THEME . 'forum_design.php'); } -if (!$FORUMSTART) +if (!vartrue($FORUMSTART)) { if (file_exists(THEME . 'forum_viewtopic_template.php')) { @@ -215,7 +215,7 @@ if ($forum->checkPerm($thread->threadInfo['thread_forum_id'], 'thread')) $tVars->BUTTONS .= " $thread->threadInfo['thread_forum_id'])) . "'>" . IMAGE_newthread . ""; } -$tVars->POLL = $pollstr; +$tVars->POLL = vartrue($pollstr); $tVars->FORUMJUMP = forumjump(); @@ -265,14 +265,14 @@ foreach ($postList as $postInfo) { $postInfo['thread_start'] = true; e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo); - $forthr = $e107->tp->parseTemplate($FORUMTHREADSTYLE, true, $forum_shortcodes) . "\n"; + $forthr = $e107->tp->parseTemplate($FORUMTHREADSTYLE, true, vartrue($forum_shortcodes)) . "\n"; } } unset($loop_uid); if ($forum->checkPerm($thread->threadInfo['thread_forum_id'], 'post') && $thread->threadInfo['thread_active']) { - if (!$forum_quickreply) + if (!vartrue($forum_quickreply)) { $tVars->QUICKREPLY = "