diff options
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_settings.php')
-rw-r--r-- | src/usr/local/www/vpn_ipsec_settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/vpn_ipsec_settings.php b/src/usr/local/www/vpn_ipsec_settings.php index 2062716..a6e858a 100644 --- a/src/usr/local/www/vpn_ipsec_settings.php +++ b/src/usr/local/www/vpn_ipsec_settings.php @@ -210,8 +210,10 @@ if ($_POST) { $retval = filter_configure(); if (stristr($retval, "error") <> true) { $savemsg = get_std_save_message(gettext($retval)); + $class = 'success'; } else { $savemsg = gettext($retval); + $class = 'warning'; } vpn_ipsec_configure($needsrestart); @@ -253,7 +255,7 @@ function maxmss_checked(obj) { <?php if ($savemsg) { - print_info_box($savemsg); + print_info_box($savemsg, $class); } if ($input_errors) { |