Index: includes/menu.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/menu.inc,v retrieving revision 1.211 diff -u -p -r1.211 menu.inc --- includes/menu.inc 1 Oct 2007 09:53:03 -0000 1.211 +++ includes/menu.inc 3 Oct 2007 19:05:30 -0000 @@ -908,6 +908,10 @@ function _menu_tree_data($result, $paren * Generate the HTML output for a single menu link. */ function theme_menu_item_link($link) { + if (empty($link['options'])) { + $link['options'] = array(); + } + return l($link['title'], $link['href'], $link['options']); } @@ -1117,12 +1121,12 @@ function menu_local_tasks($level = 0, $r if ($item['type'] == MENU_DEFAULT_LOCAL_TASK) { // Find the first parent which is not a default local task. for ($p = $item['tab_parent']; $tasks[$p]['type'] == MENU_DEFAULT_LOCAL_TASK; $p = $tasks[$p]['tab_parent']); - $link = l($item['title'], $tasks[$p]['href']); + $link = theme('menu_item_link', array('title' => $item['title'], 'href' => $tasks[$p]['href'])); $tabs_current .= theme('menu_local_task', $link, TRUE); $next_path = $item['path']; } else { - $link = l($item['title'], $item['href']); + $link = theme('menu_item_link', $item); $tabs_current .= theme('menu_local_task', $link); } } @@ -1149,13 +1153,13 @@ function menu_local_tasks($level = 0, $r if ($item['type'] == MENU_DEFAULT_LOCAL_TASK) { // Find the first parent which is not a default local task. for ($p = $item['tab_parent']; $tasks[$p]['type'] == MENU_DEFAULT_LOCAL_TASK; $p = $tasks[$p]['tab_parent']); - $link = l($item['title'], $tasks[$p]['href']); + $link = theme('menu_item_link', array('title' => $item['title'], 'href' => $tasks[$p]['href'])); if ($item['path'] == $router_item['path']) { $root_path = $tasks[$p]['path']; } } else { - $link = l($item['title'], $item['href']); + $link = theme('menu_item_link', $item); } // We check for the active tab. if ($item['path'] == $path) {