mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
update functions_config with Number of logs viewed
This commit is contained in:
parent
1d7589dd47
commit
c6d216df07
@ -695,6 +695,8 @@ function config_update_config () {
|
||||
$error_update[] = __('IP ElasticSearch server');
|
||||
if (!config_update_value ('elasticsearch_port', get_parameter('elasticsearch_port')))
|
||||
$error_update[] = __('Port ElasticSearch server');
|
||||
if (!config_update_value ('number_logs_viewed', (int)get_parameter('number_logs_viewed')))
|
||||
$error_update[] = __('Number of logs viewed');
|
||||
if (!config_update_value ('Days_purge_old_information', (int)get_parameter('Days_purge_old_information')))
|
||||
$error_update[] = __('Days to purge old information');
|
||||
break;
|
||||
@ -1023,6 +1025,10 @@ function config_process_config () {
|
||||
config_update_value ('elasticsearch_port', 9200);
|
||||
}
|
||||
|
||||
if (!isset ($config["number_logs_viewed"])) {
|
||||
config_update_value ('number_logs_viewed', 50);
|
||||
}
|
||||
|
||||
if (!isset ($config["Days_purge_old_information"])) {
|
||||
config_update_value ('Days_purge_old_information', 90);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user