Index: nice_menus.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/nice_menus/nice_menus.module,v retrieving revision 1.47 diff -u -p -r1.47 nice_menus.module --- nice_menus.module 5 Apr 2008 00:25:02 -0000 1.47 +++ nice_menus.module 28 Jun 2008 17:35:55 -0000 @@ -294,6 +294,11 @@ function theme_nice_menu_tree($menu_name */ function theme_nice_menu_build($menu) { $output = ''; + // Find the active trail and pull out the menus ids. + $trail = menu_get_active_trail(); + foreach ($trail as $item) { + $trail_ids[] = $item['mlid']; + } foreach ($menu as $menu_item) { $mlid = $menu_item['link']['mlid']; @@ -305,14 +310,16 @@ function theme_nice_menu_build($menu) { $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']); // Convert slashes to dashes. $clean_path = str_replace('/', '-', $clean_path); - $path_class = 'menu-path-'. $clean_path; + $class = 'menu-path-'. $clean_path; // If it has children build a nice little tree under it. if ((!empty($menu_item['link']['has_children'])) && (!empty($menu_item['below']))) { // Keep passing children into the function 'til we get them all. $children = theme('nice_menu_build', $menu_item['below']); // Set the class to parent only of children are displayed. - $parent_class = $children ? 'menuparent ' : ''; - $output .= '