mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix tab highlighting when editing mobile IPsec P1. Fixes #6341
This commit is contained in:
parent
d515da7528
commit
16203db376
@ -662,10 +662,8 @@ function build_eal_list() {
|
||||
|
||||
if ($pconfig['mobile']) {
|
||||
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Mobile Clients"), gettext("Edit Phase 1"));
|
||||
$editing_mobile = true;
|
||||
} else {
|
||||
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Tunnels"), gettext("Edit Phase 1"));
|
||||
$editing_mobile = false;
|
||||
}
|
||||
|
||||
$shortcut_section = "ipsec";
|
||||
@ -677,8 +675,8 @@ if ($input_errors) {
|
||||
}
|
||||
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Tunnels"), !$editing_mobile, "vpn_ipsec.php");
|
||||
$tab_array[] = array(gettext("Mobile Clients"), $editing_mobile, "vpn_ipsec_mobile.php");
|
||||
$tab_array[] = array(gettext("Tunnels"), true, "vpn_ipsec.php");
|
||||
$tab_array[] = array(gettext("Mobile Clients"), false, "vpn_ipsec_mobile.php");
|
||||
$tab_array[] = array(gettext("Pre-Shared Keys"), false, "vpn_ipsec_keys.php");
|
||||
$tab_array[] = array(gettext("Advanced Settings"), false, "vpn_ipsec_settings.php");
|
||||
display_top_tabs($tab_array);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user