diff --git a/Sources/Subs-Menu.php b/Sources/Subs-Menu.php index bdea2200ee..5625067dd8 100644 --- a/Sources/Subs-Menu.php +++ b/Sources/Subs-Menu.php @@ -225,9 +225,6 @@ function createMenu($menuData, $menuOptions = array()) // Let's assume this is the last, for now. $last_sa = $sa; } - // Mark it as disabled... - else - $menu_context['sections'][$section_id]['areas'][$area_id]['subsections'][$sa]['disabled'] = true; } // Set which one is first, last and selected in the group. @@ -267,23 +264,6 @@ function createMenu($menuData, $menuOptions = array()) } } - foreach ($menu_context['sections'] as $section_id => $section) - { - if (!empty($section['areas'])) - { - foreach ($section['areas'] as $area_id => $area) - { - if (!empty($area['subsections'])) - { - $menu_context['sections'][$section_id]['areas'][$area_id]['hide_subsections'] = true; - - foreach ($area['subsections'] as $sa => $sub) - $menu_context['sections'][$section_id]['areas'][$area_id]['hide_subsections'] &= !empty($sub['disabled']); - } - } - } - } - // Should we use a custom base url, or use the default? $menu_context['base_url'] = isset($menuOptions['base_url']) ? $menuOptions['base_url'] : $scripturl . '?action=' . $menu_context['current_action']; diff --git a/Themes/default/GenericMenu.template.php b/Themes/default/GenericMenu.template.php index ea5948c53e..66fa515120 100644 --- a/Themes/default/GenericMenu.template.php +++ b/Themes/default/GenericMenu.template.php @@ -92,7 +92,7 @@ function template_generic_menu(&$menu_context) continue; echo ' - + ', $area['icon'], $area['label'], !empty($area['amt']) ? ' ' . $area['amt'] . '' : '', ''; // Is this the current area, or just some area? @@ -100,16 +100,13 @@ function template_generic_menu(&$menu_context) $context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array(); // Are there any subsections? - if (!empty($area['subsections']) && empty($area['hide_subsections'])) + if (!empty($area['subsections'])) { echo '