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

Forum breadcrumbs on topic view with 3 forums #4286

FIX #4286
This commit is contained in:
Jimako
2022-03-21 16:59:20 +01:00
committed by GitHub
parent e7839c203c
commit 35f278dfe5

View File

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