From 23607968dfc1429f509d3ee3b5b7f9f0f2ed720b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Mon, 28 Jan 2008 15:55:25 +0000
Subject: [PATCH] #207029 by JohnAlbin: some menu item properties were not
 passed along for theming (regression)

---
 includes/menu.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/menu.inc b/includes/menu.inc
index 0aab82524afa..e9e738f449a4 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'];
             }
-- 
GitLab