summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local')
-rwxr-xr-xsrc/usr/local/www/status_logs.php2
-rw-r--r--src/usr/local/www/status_logs_common.inc6
-rw-r--r--src/usr/local/www/status_logs_filter.php2
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;
}
OpenPOWER on IntegriCloud