#9662 Fixed discovery menu

This commit is contained in:
Daniel Maya 2023-02-13 14:32:02 +01:00
parent f5044e5673
commit 98f82b4ce8
2 changed files with 7 additions and 1 deletions

View File

@ -72,6 +72,8 @@ if ((bool) check_acl($config['id_user'], 0, 'AR') === true
$sub['godmode/servers/discovery&wiz=hd']['text'] = __('Host & devices'); $sub['godmode/servers/discovery&wiz=hd']['text'] = __('Host & devices');
$sub['godmode/servers/discovery&wiz=hd']['id'] = 'hd'; $sub['godmode/servers/discovery&wiz=hd']['id'] = 'hd';
$sub['godmode/servers/discovery&wiz=hd']['type'] = 'direct';
$sub['godmode/servers/discovery&wiz=hd']['subtype'] = 'nolink';
$sub['godmode/servers/discovery&wiz=hd']['sub2'] = $sub2; $sub['godmode/servers/discovery&wiz=hd']['sub2'] = $sub2;
} }

View File

@ -61,6 +61,10 @@ function menu_print_menu(&$menu)
} else if ($sec2 === 'godmode/servers/discovery') { } else if ($sec2 === 'godmode/servers/discovery') {
$wiz = (string) get_parameter('wiz'); $wiz = (string) get_parameter('wiz');
$sec2 = 'godmode/servers/discovery&wiz='.$wiz; $sec2 = 'godmode/servers/discovery&wiz='.$wiz;
$mode = (string) get_parameter('mode', '');
if (empty($mode) === false) {
$sec2 .= '&mode='.$mode;
}
} else if ($sec2 === 'godmode/groups/group_list') { } else if ($sec2 === 'godmode/groups/group_list') {
$tab = (string) get_parameter('tab'); $tab = (string) get_parameter('tab');
if ($tab === 'credbox') { if ($tab === 'credbox') {