diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-08-23 16:56:11 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-08-23 16:56:11 -0700 |
commit | 469f8ba89cc3b613b88228d95f9c69cb53e5b605 (patch) | |
tree | 4457c245b8b03bbbb11ed4c2201afb28381d3b57 /views/default/navigation/menu/default.php | |
parent | 5285471b7c6f2b4ef7dc02fb2a9c231e2216eef7 (diff) | |
download | elgg-469f8ba89cc3b613b88228d95f9c69cb53e5b605.tar.gz elgg-469f8ba89cc3b613b88228d95f9c69cb53e5b605.tar.bz2 |
Rewriting more chars to - in the default menu view.
Diffstat (limited to 'views/default/navigation/menu/default.php')
-rw-r--r-- | views/default/navigation/menu/default.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php index 0dc6dd6b3..0fa391433 100644 --- a/views/default/navigation/menu/default.php +++ b/views/default/navigation/menu/default.php @@ -9,7 +9,7 @@ */ // we want css classes to use dashes -$vars['name'] = str_replace('_', '-', $vars['name']); +$vars['name'] = preg_replace('/[^a-z0-9\-]/i', '-', $vars['name']); $headers = elgg_extract('show_section_headers', $vars, false); $class = "elgg-menu elgg-menu-{$vars['name']}"; |