diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-03 10:50:22 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-01-03 10:50:22 +0545 |
commit | 44c423566b6eff18ec43ee77edddb94e3a3aa858 (patch) | |
tree | ec35ff8f9243236c75e9b120b80a2f62251ad5d8 /src/usr/local/www/system_gateways.php | |
parent | 46c06ade87cbea59d1113a23a5d91f15dab9048c (diff) | |
download | pfsense-44c423566b6eff18ec43ee77edddb94e3a3aa858.zip pfsense-44c423566b6eff18ec43ee77edddb94e3a3aa858.tar.gz |
Report problems applying changes
1) Strictly keep track of the accumulating $retval from calls to various
functions that apply changes.
2) Use new function print_apply_result_box() to print a suitable message
in a suitable severity based on $retval
Diffstat (limited to 'src/usr/local/www/system_gateways.php')
-rw-r--r-- | src/usr/local/www/system_gateways.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/system_gateways.php b/src/usr/local/www/system_gateways.php index 9eb95de..2927f0f 100644 --- a/src/usr/local/www/system_gateways.php +++ b/src/usr/local/www/system_gateways.php @@ -53,7 +53,7 @@ if ($_POST) { $retval = 0; - $retval = system_routing_configure(); + $retval |= system_routing_configure(); $retval |= system_resolvconf_generate(); $retval |= filter_configure(); /* reconfigure our gateway monitor */ @@ -61,7 +61,6 @@ if ($_POST) { /* Dynamic DNS on gw groups may have changed */ send_event("service reload dyndnsall"); - $savemsg = get_std_save_message($retval); if ($retval == 0) { clear_subsystem_dirty('staticroutes'); } @@ -230,8 +229,9 @@ include("head.inc"); if ($input_errors) { print_input_errors($input_errors); } -if ($savemsg) { - print_info_box($savemsg, 'success'); + +if ($_POST['apply']) { + print_apply_result_box($retval); } if (is_subsystem_dirty('staticroutes')) { |