diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-19 16:28:48 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-19 16:28:48 -0200 |
commit | c17ad197579f8b2aed8f66127ff4df06af8fb8f1 (patch) | |
tree | 73d71e4bd89af0fe1ac2c11c29360777958e9e33 | |
parent | 9c12e7bbbc148a19b6a88c524d5467a82363fcd9 (diff) | |
parent | af4260176345108fcb7cfb82439d0008ee542900 (diff) | |
download | pfsense-c17ad197579f8b2aed8f66127ff4df06af8fb8f1.zip pfsense-c17ad197579f8b2aed8f66127ff4df06af8fb8f1.tar.gz |
Merge pull request #2483 from phil-davis/patch-5
-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')) { |