Commit 6789c8dc authored by Dries's avatar Dries

- Patch #890884 by joachim: targeted overrides for theme_menu_link() and...

- Patch #890884 by joachim: targeted overrides for theme_menu_link() and theme_menu_tree() fail for menus with a hyphen.
parent 5eb6a99c
......@@ -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;
......
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