mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
errata fix
This commit is contained in:
parent
0c1829a555
commit
b27966aa18
@ -391,11 +391,11 @@ sub pandora_purgedb ($$) {
|
|||||||
|
|
||||||
# Delete old log data
|
# Delete old log data
|
||||||
log_message ('PURGE', "Deleting old network configuration manager data.");
|
log_message ('PURGE', "Deleting old network configuration manager data.");
|
||||||
if (defined($conf->{'days_purge_ncm'}) && $conf->{'days_purge_ncm'} > 0) {
|
if (defined($conf->{'_days_purge'}) && $conf->{'_days_purge'} > 0) {
|
||||||
log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'days_purge_ncm'} . ' days.');
|
log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'_days_purge'} . ' days.');
|
||||||
enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'days_purge_ncm'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]);
|
enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'_days_purge'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]);
|
||||||
} else {
|
} else {
|
||||||
log_message ('PURGE', 'days_purge_ncm is set to 0. Old network configuration manager data will not be deleted.');
|
log_message ('PURGE', '_days_purge is set to 0. Old network configuration manager data will not be deleted.');
|
||||||
}
|
}
|
||||||
|
|
||||||
# Delete old special days
|
# Delete old special days
|
||||||
|
Loading…
x
Reference in New Issue
Block a user