Project

General

Profile

« Previous | Next » 

Revision 44c42356

Added by Phil Davis over 8 years ago

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

View differences:

src/usr/local/www/services_pppoe.php
59 59
		}
60 60
		$retval = 0;
61 61
		$retval |= filter_configure();
62
		$savemsg = get_std_save_message($retval);
63 62
		clear_subsystem_dirty('vpnpppoe');
64 63
	}
65 64
}
......
83 82
$shortcut_section = "pppoes";
84 83
include("head.inc");
85 84

  
86
if ($savemsg) {
87
	print_info_box($savemsg, 'success');
85
if ($_POST['apply']) {
86
	print_apply_result_box($retval);
88 87
}
89 88

  
90 89
if (is_subsystem_dirty('vpnpppoe')) {

Also available in: Unified diff