- Patch #890884 by joachim: targeted overrides for theme_menu_link() and theme_menu_tree() fail for menus with a hyphen.

merge-requests/26/head
Dries Buytaert 2010-09-01 02:59:04 +00:00
parent 5eb6a99c4a
commit 6789c8dc04
1 changed files with 1 additions and 1 deletions

View File

@ -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;