1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 03:10:50 +02: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

@@ -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);