Commit 22c0a0a4 authored by Dries's avatar Dries

- Patch #170309 by pwolanin, Pasqualle, Nick Urban, naquah, keith.smith, et...

- Patch #170309 by pwolanin, Pasqualle, Nick Urban, naquah, keith.smith, et al: breadcrumb doesn'tt always include all active items.
parent 45ef7ac5
......@@ -1574,10 +1574,10 @@ function menu_set_active_trail($new_trail = NULL) {
$curr = FALSE;
}
else {
// Move to the child link if it's in the active trail.
if ($curr['below'] && $curr['link']['in_active_trail']) {
// Add the link if it's in the active trail, then move to the link below.
if ($curr['link']['in_active_trail']) {
$trail[] = $curr['link'];
$tree = $curr['below'];
$tree = $curr['below'] ? $curr['below'] : array();
}
list($key, $curr) = each($tree);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment