aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/menu/default.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
index 1a7f292b8..13ff9f1e2 100644
--- a/views/default/navigation/menu/default.php
+++ b/views/default/navigation/menu/default.php
@@ -7,6 +7,9 @@
* @uses $vars['class']
*/
+// we want css classes to use dashes
+$vars['name'] = str_replace('_', '-', $vars['name']);
+
$class = "elgg-menu elgg-menu-{$vars['name']}";
if (isset($vars['class'])) {
$class .= " {$vars['class']}";