Project

General

Profile

« Previous | Next » 

Revision c8532336

Added by Phil Davis over 9 years ago

print_info_box success

In most situations we want the print_info_box() of $savemsg to be
'success'. If there was some problem saving, then it can be 'warning'.
These are a few places I have found so far that need this sort of fixing
up - more to come but sleep calls just now!
I made the change to index.php also to be consistent with the others,
even though it does not actually change anything "for real" because
'warning' is the default anyway. It will make it easy for people in
future to see that is the case, specially if they are adding other
$savemsg things that need to be 'success'.

View differences:

src/usr/local/www/index.php
108 108

  
109 109
		if ($x > 0) {
110 110
			$savemsg = "{$g['product_name']} has detected a crash report or programming bug.  Click <a href='crash_reporter.php'>here</a> for more information.";
111
			$class = "warning";
111 112
		}
112 113
	}
113 114
}
......
304 305
include("head.inc");
305 306

  
306 307
if ($savemsg) {
307
	print_info_box($savemsg);
308
	print_info_box($savemsg, $class);
308 309
}
309 310

  
310 311
pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard");

Also available in: Unified diff