Commit bca16fde authored by Dries's avatar Dries
Browse files

- Patch #249571 by pwoladin: primary/secondary links don't get 'active-trail' class.

parent 79ac53f8
......@@ -1257,6 +1257,9 @@ function menu_navigation_links($menu_name, $level = 0) {
$l = $item['link']['localized_options'];
$l['href'] = $item['link']['href'];
$l['title'] = $item['link']['title'];
if ($item['link']['in_active_trail']) {
$l['attributes'] = array('class' => 'active-trail');
}
// Keyed with unique menu id to generate classes from theme_links().
$links['menu-' . $item['link']['mlid']] = $l;
}
......
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