diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-19 23:49:39 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-19 23:49:39 +0545 |
commit | af4260176345108fcb7cfb82439d0008ee542900 (patch) | |
tree | 57e4d7d1053f35e05ed446e94e6234975806bc53 | |
parent | c64c9278cf53f326db549b43e29ca9639cf784ae (diff) | |
download | pfsense-af4260176345108fcb7cfb82439d0008ee542900.zip pfsense-af4260176345108fcb7cfb82439d0008ee542900.tar.gz |
Firewall shaper wizards print_info_box() severity level
-rw-r--r-- | src/usr/local/www/firewall_shaper_wizards.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_shaper_wizards.php b/src/usr/local/www/firewall_shaper_wizards.php index fec62a2..7bbc941 100644 --- a/src/usr/local/www/firewall_shaper_wizards.php +++ b/src/usr/local/www/firewall_shaper_wizards.php @@ -77,11 +77,12 @@ if ($_POST['apply']) { $retval = 0; /* Setup pf rules since the user may have changed the optimization value */ $retval = filter_configure(); - $savemsg = get_std_save_message($retval); if (stristr($retval, "error") <> true) { $savemsg = get_std_save_message($retval); + $class = 'success'; } else { $savemsg = $retval; + $class = 'warning'; } /* reset rrd queues */ @@ -114,7 +115,7 @@ $tab_array[] = array(gettext("Wizards"), true, "firewall_shaper_wizards.php"); display_top_tabs($tab_array); if ($savemsg) { - print_info_box($savemsg, 'success'); + print_info_box($savemsg, $class); } if (is_subsystem_dirty('shaper')) { |