1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

Fixes #4544 - SubForum missing global value. LAN shortcode now parsed correctly.

This commit is contained in:
Cameron
2021-10-10 08:55:16 -07:00
parent 840e818f40
commit 5e83895c8f
2 changed files with 23 additions and 103 deletions

View File

@@ -52,6 +52,7 @@ class forum_viewforum_front
function __construct()
{
$this->init();
}
@@ -67,7 +68,18 @@ function init()
// todo - remove all these globals.
global $FORUM_VIEW_START, $urlparms, $doNothing;
global $sc, $FORUM_VIEW_FORUM, $FORUM_VIEW_FORUM_STICKY, $FORUM_VIEW_FORUM_ANNOUNCE;
global $forum_info, $FORUM_CRUMB, $forumInfo;
global $FORUM_VIEW_FORUM,
$FORUM_VIEW_FORUM_STICKY,
$FORUM_VIEW_FORUM_ANNOUNCE,
$FORUM_VIEW_END,
$FORUM_VIEW_END_CONTAINER,
$FORUM_VIEW_SUB_START,
$FORUM_VIEW_SUB,
$FORUM_VIEW_SUB_END,
$FORUM_IMPORTANT_ROW,
$FORUM_NORMAL_ROW;
global $forum_info, $FORUM_CRUMB, $forumInfo, $forumId;
global $forum;
$sql = e107::getDb();
@@ -203,7 +215,6 @@ function init()
}
$forumInfo['forum_name'] = $tp->toHTML($forumInfo['forum_name'], true, 'no_hook, emotes_off');
$forumInfo['forum_description'] = $tp->toHTML($forumInfo['forum_description'], true, 'no_hook');