aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/default.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/default.php')
-rw-r--r--views/default/navigation/menu/default.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
index 52049f6e0..1a7f292b8 100644
--- a/views/default/navigation/menu/default.php
+++ b/views/default/navigation/menu/default.php
@@ -2,19 +2,19 @@
/**
* Default menu
*
+ * @uses $vars['name']
* @uses $vars['menu']
* @uses $vars['class']
*/
$class = "elgg-menu elgg-menu-{$vars['name']}";
if (isset($vars['class'])) {
- $class = "$class {$vars['class']}";
+ $class .= " {$vars['class']}";
}
foreach ($vars['menu'] as $section => $menu_items) {
- echo elgg_view('navigation/menu/elements/group', array(
- 'section' => $section,
+ echo elgg_view('navigation/menu/elements/section', array(
'items' => $menu_items,
- 'class' => $class,
+ 'class' => "$class elgg-menu-{$vars['name']}-$section",
));
}