mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #1395 - Moderator: Array issue. Fixes some BC breadcrumb links.
This commit is contained in:
@@ -2001,11 +2001,13 @@ class e107forum
|
||||
|
||||
|
||||
$dfltsep = ' :: ';
|
||||
$BREADCRUMB = "<a class='forumlink' href='".e_BASE."index.php'>".SITENAME."</a>".$dfltsep."<a class='forumlink' href='".e_PLUGIN."forum/forum.php'>".LAN_PLUGIN_FORUM_NAME."</a>".$dfltsep;
|
||||
$BREADCRUMB = "<a class='forumlink' href='".e_HTTP."index.php'>".SITENAME."</a>".$dfltsep.
|
||||
"<a class='forumlink' href='". e107::url('forum','index')."'>".LAN_PLUGIN_FORUM_NAME."</a>".$dfltsep;
|
||||
|
||||
if($forumInfo['sub_parent'])
|
||||
{
|
||||
$forum_sub_parent = (substr($forumInfo['sub_parent'], 0, 1) == '*' ? substr($forumInfo['sub_parent'], 1) : $forumInfo['sub_parent']);
|
||||
$BREADCRUMB .= "<a class='forumlink' href='".e_PLUGIN."forum/forum_viewforum.php?{$forumInfo['forum_sub']}'>{$forum_sub_parent}</a>".$dfltsep;
|
||||
$BREADCRUMB .= "<a class='forumlink' href='".e_PLUGIN_ABS."forum/forum_viewforum.php?{$forumInfo['forum_sub']}'>{$forum_sub_parent}</a>".$dfltsep;
|
||||
}
|
||||
|
||||
$tmpFname = $forumInfo['forum_name'];
|
||||
@@ -2013,7 +2015,7 @@ class e107forum
|
||||
|
||||
if ($forum_href)
|
||||
{
|
||||
$BREADCRUMB .= "<a class='forumlink' href='".e_PLUGIN."forum/forum_viewforum.php?{$forumInfo['forum_id']}'>".$tp->toHTML($tmpFname, TRUE, 'no_hook,emotes_off')."</a>";
|
||||
$BREADCRUMB .= "<a class='forumlink' href='".e107::url('forum', 'forum', $forumInfo)."'>".$tp->toHTML($tmpFname, TRUE, 'no_hook,emotes_off')."</a>";
|
||||
} else
|
||||
{
|
||||
$BREADCRUMB .= $tmpFname;
|
||||
|
@@ -296,8 +296,14 @@ if ($forum->prefs->get('track') && USER)
|
||||
|
||||
}
|
||||
|
||||
$modUser = array();
|
||||
foreach ( $forum->modArray as $user)
|
||||
{
|
||||
$modUser[] = "<a href='".e107::getUrl()->create('user/profile/view', $user)."'>".$user['user_name']."</a>";
|
||||
}
|
||||
|
||||
$tVars->MODERATORS = LAN_FORUM_2003.": ". implode(', ', $forum->modArray);
|
||||
$tVars->MODERATORS = LAN_FORUM_2003.": ". implode(', ', $modUser);
|
||||
unset($modUser);
|
||||
|
||||
$tVars->THREADSTATUS = (!$thread->threadInfo['thread_active'] ? LAN_FORUM_2004 : '');
|
||||
|
||||
|
Reference in New Issue
Block a user