We can now define the days after a contact is archived

This commit is contained in:
Michael 2018-04-10 11:10:02 +00:00
parent ea9b4cc523
commit 869d8ab12d
4 changed files with 10 additions and 7 deletions

View file

@ -306,7 +306,9 @@ class Contact extends BaseObject
*/
/// @todo Check for contact vitality via probing
$expiry = $contact['term-date'] . ' + 32 days ';
$archival_days = Config::get('system', 'archival_days', 32);
$expiry = $contact['term-date'] . ' + ' . $archival_days . ' days ';
if (DateTimeFormat::utcNow() > DateTimeFormat::utc($expiry)) {
/* Relationship is really truly dead. archive them rather than
* delete, though if the owner tries to unarchive them we'll start