]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
Fixed a triggered error in bigintval()
[mailer.git] / inc / template-functions.php
index 057ec6a052a90b93d8e82ccef64f43ef2a66c851..4da8ef31b200524115d5b34bb1e23de321738988 100644 (file)
@@ -276,7 +276,6 @@ function loadTemplate ($template, $return = false, $content = array()) {
 
                // Init some data
                $ret = '';
-               if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = '0';
 
                // Base directory
                $basePath = sprintf("%stemplates/%s/html/", getPath(), getLanguage());
@@ -430,7 +429,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = '0') {
                        $content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}';
                } elseif (isConfigEntrySet('auto_purge')) {
                        // Create nice date string
-                       $content['expiration'] = createFancyTime(getAutoPurge());
+                       $content['expiration'] = '{%pipe,getAutoPurge,createFancyTime%}';
                } else {
                        // Missing entry
                        $content['expiration'] = '{--MAIL_NO_CONFIG_AUTO_PURGE--}';