Commit 23607968 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#207029 by JohnAlbin: some menu item properties were not passed along for theming (regression)

parent 0221e612
......@@ -1262,7 +1262,7 @@ function menu_local_tasks($level = 0, $return_root = FALSE) {
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 = theme('menu_item_link', array('title' => $item['title'], 'href' => $tasks[$p]['href']));
$link = theme('menu_item_link', array('href' => $tasks[$p]['href']) + $item);
$tabs_current .= theme('menu_local_task', $link, TRUE);
$next_path = $item['path'];
}
......@@ -1294,7 +1294,7 @@ function menu_local_tasks($level = 0, $return_root = FALSE) {
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 = theme('menu_item_link', array('title' => $item['title'], 'href' => $tasks[$p]['href']));
$link = theme('menu_item_link', array('href' => $tasks[$p]['href']) + $item);
if ($item['path'] == $router_item['path']) {
$root_path = $tasks[$p]['path'];
}
......
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