diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-05-01 15:09:18 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-07-21 17:15:59 -0400 |
| commit | 43d43d3101e7f555422bd48276f22b1bebbf6010 (patch) | |
| tree | 6ad1e648a57607802eeb4a46f4cffe41c0aadf4c /ng_selfservice/elements/menu.php | |
| parent | a941bc2ebde67e4bb0be5d6516cf1b09c092e8a1 (diff) | |
RT#73993 - updated selfservice and ngselfservice to allow for the control of changes packages by agent.
Diffstat (limited to 'ng_selfservice/elements/menu.php')
| -rw-r--r-- | ng_selfservice/elements/menu.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ng_selfservice/elements/menu.php b/ng_selfservice/elements/menu.php index cb9d617c8..b68c8c18d 100644 --- a/ng_selfservice/elements/menu.php +++ b/ng_selfservice/elements/menu.php @@ -32,15 +32,15 @@ extract($skin_info); foreach ($menu_array AS $menu_item) { if ( preg_match('/^\s*$/', $menu_item) ) { - print_menu($submenu, $current_menu); + print_menu($submenu, $current_menu, $menu_disable); $submenu = array(); } else { $submenu[] = $menu_item; } } - print_menu($submenu, $current_menu); + print_menu($submenu, $current_menu, $menu_disable); - function print_menu($submenu_array, $current_menu) { + function print_menu($submenu_array, $current_menu, $menu_disable) { if ( count($submenu_array) == 0 ) { return; } $links = array(); @@ -71,8 +71,10 @@ extract($skin_info); echo '<ul>'; foreach ($links AS $link) { $label = array_shift($labels); - print_link($link, $label, $current_menu, array($link) ); - echo '</a></li>'; + if ( in_array($label, $menu_disable) == 0) { + print_link($link, $label, $current_menu, array($link) ); + echo '</a></li>'; + } } echo '</ul>'; } |
