diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-05 23:15:37 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-05 23:15:37 +0000 |
commit | 66c958c52d410b02a7634187815bee60f380e646 (patch) | |
tree | be4ae56738fd85f9df9f388d52856b44e7ab8993 | |
parent | 54e341d7605bb3b8088614e9c428dedb14caf773 (diff) | |
download | elgg-66c958c52d410b02a7634187815bee60f380e646.tar.gz elgg-66c958c52d410b02a7634187815bee60f380e646.tar.bz2 |
forcing dashes in elgg menu classes
git-svn-id: http://code.elgg.org/elgg/trunk@8602 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/navigation/menu/default.php | 3 |
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']}"; |