summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-28 15:55:25 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-28 15:55:25 +0000
commit23607968dfc1429f509d3ee3b5b7f9f0f2ed720b (patch)
tree7904654c08c1619b7a2d642a28cbcdba2b98e074
parent0221e61258f58dc98449c69b81c879f3e91ed777 (diff)
downloadbrdo-23607968dfc1429f509d3ee3b5b7f9f0f2ed720b.tar.gz
brdo-23607968dfc1429f509d3ee3b5b7f9f0f2ed720b.tar.bz2
#207029 by JohnAlbin: some menu item properties were not passed along for theming (regression)
-rw-r--r--includes/menu.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 0aab82524..e9e738f44 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -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'];
}