diff options
author | Renato Botelho <renato@netgate.com> | 2017-01-25 16:48:43 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-25 16:48:43 -0200 |
commit | 32dcdc7ce492cf1ce60e6e21fd9b8708ce8a65e3 (patch) | |
tree | 93a6a93bf0019dca3b78eb340b7dbc2f64ef765d /src/usr/local | |
parent | a634183dcaabff28b6f24d08549a68724cbaa22e (diff) | |
parent | 815398fb3aabc4cbe15ce89df931d8a1ccae8e50 (diff) | |
download | pfsense-32dcdc7ce492cf1ce60e6e21fd9b8708ce8a65e3.zip pfsense-32dcdc7ce492cf1ce60e6e21fd9b8708ce8a65e3.tar.gz |
Merge pull request #3442 from phil-davis/monitor-reload
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_rules.php | 9 | ||||
-rw-r--r-- | src/usr/local/www/guiconfig.inc | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index 188d8dc..55b6aef 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -174,12 +174,9 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; - $retval = filter_configure(); + $retval |= filter_configure(); clear_subsystem_dirty('filter'); - - $savemsg = sprintf(gettext("The settings have been applied. The firewall rules are now reloading in the background.<br />%s Monitor %s the reload progress."), - "<a href='status_filter_reload.php'>", "</a>"); } } @@ -331,6 +328,10 @@ if ($savemsg) { print_info_box($savemsg, 'success'); } +if ($_POST['apply']) { + print_apply_result_box($retval); +} + if (is_subsystem_dirty('filter')) { print_apply_box(gettext("The firewall rule configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect.")); } diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc index 3b3c1c4..2163dc2 100644 --- a/src/usr/local/www/guiconfig.inc +++ b/src/usr/local/www/guiconfig.inc @@ -379,7 +379,7 @@ function print_callout($msg, $class = 'info', $heading = '') { function get_std_save_message($retval) { $filter_related = false; - $filter_pages = array("nat", "filter"); + $filter_pages = array("firewall_aliases", "firewall_nat", "firewall_rules", "status_logs_filter"); if ($retval === 0) { // 0 is success $to_return = gettext("The changes have been applied successfully."); @@ -393,7 +393,8 @@ function get_std_save_message($retval) { } } if ($filter_related) { - $to_return .= "<br />" . gettext("<a href=\"status_filter_reload.php\">Monitor</a> the filter reload progress."); + $to_return .= " " . gettext("The firewall rules are now reloading in the background.") . "<br />" . + sprintf(gettext("%sMonitor%s the filter reload progress."), "<a href='status_filter_reload.php'>", "</a>"); } return $to_return; } |