X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=ba3588063aef2e71c416d33e56150c515db62a76;hb=f585bb39812d6f027725b87fa9f845e0dfe3b306;hp=4f1ad6f8e579e628c059c798fbcd3054698332f3;hpb=3e3d42e0bfae0d293a27aabe15d20489dd592964;p=mailer.git diff --git a/inc/template-functions.php b/inc/template-functions.php index 4f1ad6f8e5..ba3588063a 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -444,12 +444,12 @@ function loadEmailTemplate ($template, $content = array(), $userid = '0') { // Is content an array? if (is_array($content)) { // Add expiration to array - if ((isConfigEntrySet('auto_purge')) && (getConfig('auto_purge') == '0')) { + if ((isConfigEntrySet('auto_purge')) && (getAutoPurge() == '0')) { // Will never expire! $content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}'; } elseif (isConfigEntrySet('auto_purge')) { // Create nice date string - $content['expiration'] = createFancyTime(getConfig('auto_purge')); + $content['expiration'] = createFancyTime(getAutoPurge()); } else { // Missing entry $content['expiration'] = '{--MAIL_NO_CONFIG_AUTO_PURGE--}';