summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-19 16:28:48 -0200
committerRenato Botelho <renato@netgate.com>2016-01-19 16:28:48 -0200
commitc17ad197579f8b2aed8f66127ff4df06af8fb8f1 (patch)
tree73d71e4bd89af0fe1ac2c11c29360777958e9e33
parent9c12e7bbbc148a19b6a88c524d5467a82363fcd9 (diff)
parentaf4260176345108fcb7cfb82439d0008ee542900 (diff)
downloadpfsense-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.php5
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')) {
OpenPOWER on IntegriCloud