From 9c3b90d5fa1d0231f0f931d410e5501aeabce575 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 20 Mar 2023 16:21:31 -0700 Subject: [PATCH] Fixes #4966 - IMODE not defined. --- e107_plugins/forum/forum_stats.php | 2 ++ userposts.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/e107_plugins/forum/forum_stats.php b/e107_plugins/forum/forum_stats.php index ef7daffad..e1a88e237 100644 --- a/e107_plugins/forum/forum_stats.php +++ b/e107_plugins/forum/forum_stats.php @@ -503,6 +503,8 @@ class forumStats $ns = e107::getRender(); $tp = e107::getParser(); + if(!defined('IMODE')) define('IMODE', 'lite'); // BC + define('IMAGE_rank_main_admin_image', ($pref['rank_main_admin_image'] && file_exists(THEME."forum/".$pref['rank_main_admin_image']) ? "" : "")); define('IMAGE_rank_admin_image', ($pref['rank_admin_image'] && file_exists(THEME."forum/".$pref['rank_admin_image']) ? "" : "")); diff --git a/userposts.php b/userposts.php index d918b2b81..4015548a2 100644 --- a/userposts.php +++ b/userposts.php @@ -27,6 +27,7 @@ $ns = e107::getRender(); require_once(HEADERF); + $action = 'exit'; if (e_QUERY) { @@ -235,6 +236,8 @@ elseif ($action == 'forums') $postUrl = e107::url('forum', 'topic', $row, array('query' => array('p' => $postPage), 'fragment' => 'post-' . $row['post_id'])); + if(!defined('IMODE')) define('IMODE', 'lite'); // BC + $vars->USERPOSTS_FORUM_ICON = ""; $vars->USERPOSTS_FORUM_TOPIC_HREF_PRE = ""; //$e107->url->getUrl('forum', 'thread', "func=post&id={$row['post_id']}") $vars->USERPOSTS_FORUM_TOPIC = $tp->toHTML($row['thread_name'], true, 'USER_BODY', $id);