mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Merge pull request #4710 from Jimmi08/patch-33
Fixes #4286 - Forum breadcrumbs on topic view with 3 forums
This commit is contained in:
commit
608b2ebb4f
@ -1154,6 +1154,7 @@ class e107forum
|
||||
fp.forum_id AS parent_id, fp.forum_name AS parent_name,
|
||||
sp.forum_id AS forum_sub, sp.forum_name AS sub_parent,
|
||||
fp.forum_sef AS parent_sef,
|
||||
sp.forum_sef AS sub_parent_sef,
|
||||
tr.track_userid
|
||||
FROM `#forum_thread` AS t
|
||||
LEFT JOIN `#forum` AS f ON t.thread_forum_id = f.forum_id
|
||||
@ -2436,7 +2437,7 @@ class e107forum
|
||||
|
||||
if($forumInfo['forum_sub'])
|
||||
{
|
||||
$breadcrumb[] = array('text'=> ltrim($forumInfo['sub_parent'], '*') , 'url'=> e107::url('forum','forum', array('forum_sef'=> $forumInfo['parent_sef'])));
|
||||
$breadcrumb[] = array('text'=> ltrim($forumInfo['sub_parent'], '*') , 'url'=> e107::url('forum','forum', array('forum_sef'=> $forumInfo['sub_parent_sef'])));
|
||||
$breadcrumb[] = array('text'=>ltrim($forumInfo['forum_name'], '*') , 'url'=> (defset('e_PAGE') !='forum_viewforum.php') ? e107::url('forum', 'forum', $forumInfo) : null);
|
||||
|
||||
}
|
||||
@ -2691,4 +2692,4 @@ function img_path($filename)
|
||||
}
|
||||
|
||||
return $image;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user