1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Fixes #4966 - IMODE not defined.

This commit is contained in:
Cameron 2023-03-20 16:21:31 -07:00
parent cb166cb758
commit 9c3b90d5fa
2 changed files with 5 additions and 0 deletions

View File

@ -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']) ? "<img src='".THEME_ABS."forum/".$pref['rank_main_admin_image']."' alt='' />" : "<img src='".e_PLUGIN_ABS."forum/images/".IMODE."/main_admin.png' alt='' />"));
define('IMAGE_rank_admin_image', ($pref['rank_admin_image'] && file_exists(THEME."forum/".$pref['rank_admin_image']) ? "<img src='".THEME_ABS."forum/".$pref['rank_admin_image']."' alt='' />" : "<img src='".e_PLUGIN_ABS."forum/images/".IMODE."/admin.png' alt='' />"));

View File

@ -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 = "<img src='".e_PLUGIN."forum/images/".IMODE."/new_small.png' alt='' />";
$vars->USERPOSTS_FORUM_TOPIC_HREF_PRE = "<a href='".$postUrl."'>"; //$e107->url->getUrl('forum', 'thread', "func=post&id={$row['post_id']}")
$vars->USERPOSTS_FORUM_TOPIC = $tp->toHTML($row['thread_name'], true, 'USER_BODY', $id);