mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 12:18:39 +01:00
Fixes #4966 - IMODE not defined.
This commit is contained in:
parent
cb166cb758
commit
9c3b90d5fa
@ -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='' />"));
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user