diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-01-08 16:28:24 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-01-08 16:28:24 -0800 |
commit | f1ac5d2372b78293b56025e8798ba95841432b1a (patch) | |
tree | 269239723a2a3648b0823ebca64d8e560ceedb8d /src/usr/local/www | |
parent | 03911305e261879ab46a7b52436cf130cf70076d (diff) | |
download | pfsense-f1ac5d2372b78293b56025e8798ba95841432b1a.zip pfsense-f1ac5d2372b78293b56025e8798ba95841432b1a.tar.gz |
Fix status message so it displays if logging changes made.
Also print info box success.
Thanks Phil for the hint.
Diffstat (limited to 'src/usr/local/www')
-rwxr-xr-x | src/usr/local/www/status_logs.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/status_logs_common.inc | 6 | ||||
-rw-r--r-- | src/usr/local/www/status_logs_filter.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/status_logs.php b/src/usr/local/www/status_logs.php index 963932e..9ae722d 100755 --- a/src/usr/local/www/status_logs.php +++ b/src/usr/local/www/status_logs.php @@ -129,7 +129,7 @@ $pgtitle = array(gettext("Status"), gettext("System logs"), gettext($allowed_log include("head.inc"); if (!$input_errors && $savemsg) { - print_info_box($savemsg); + print_info_box($savemsg, 'success'); $manage_log_active = false; } diff --git a/src/usr/local/www/status_logs_common.inc b/src/usr/local/www/status_logs_common.inc index 35098ee..be12aba 100644 --- a/src/usr/local/www/status_logs_common.inc +++ b/src/usr/local/www/status_logs_common.inc @@ -516,7 +516,7 @@ function status_logs_build_if_list() { // Manage Log Section - Code function manage_log_code() { - global $logfile, $specific_log, $config, $pconfig, $rawfilter, $save_settings, $input_errors; + global $logfile, $specific_log, $config, $pconfig, $rawfilter, $save_settings, $input_errors, $savemsg; $specific_log = basename($logfile) . '_settings'; @@ -649,12 +649,12 @@ function manage_log_code() { write_config($desc = "Log Display Settings Saved: " . gettext($allowed_logs[$logfile]["name"]), $backup = true, $write_config_only = false); $retval = 0; $retval = system_syslogd_start(); + $savemsg = gettext("The changes have been applied successfully."); } else { write_config($desc = "Log Display Settings Saved (no backup, no sync): " . gettext($allowed_logs[$logfile]["name"]), $backup = false, $write_config_only = true); + $savemsg = ''; } - $savemsg = gettext("The changes have been applied successfully."); - // Specific to System General (main) Log if ($logfile == 'system') { if ($nginx_logging_changed) { diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php index f28f048..644ab5b 100644 --- a/src/usr/local/www/status_logs_filter.php +++ b/src/usr/local/www/status_logs_filter.php @@ -136,7 +136,7 @@ $pgtitle = array(gettext("Status"), gettext("System logs"), gettext($allowed_log include("head.inc"); if (!$input_errors && $savemsg) { - print_info_box($savemsg); + print_info_box($savemsg, 'success'); $manage_log_active = false; } |