From 6789c8dc042a010c1043fb595b9b0b8612920120 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Wed, 1 Sep 2010 02:59:04 +0000 Subject: [PATCH] - Patch #890884 by joachim: targeted overrides for theme_menu_link() and theme_menu_tree() fail for menus with a hyphen. --- includes/menu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/menu.inc b/includes/menu.inc index f94968943c26..5e5abaffcd42 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -961,7 +961,7 @@ function menu_tree_output($tree) { $build['#sorted'] = TRUE; // Add the theme wrapper for outer markup. // Allow menu-specific theme overrides. - $build['#theme_wrappers'][] = 'menu_tree__' . $data['link']['menu_name']; + $build['#theme_wrappers'][] = 'menu_tree__' . strtr($data['link']['menu_name'], '-', '_'); } return $build; -- GitLab