]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/bonus_mails.php
Caching of expensive PHP functions:
[mailer.git] / inc / mails / bonus_mails.php
index 99f47d66a7125e04b1fda182fb1c005d9320a617..84f30688dcf8e13466ecf21cda5e23fe092d649a 100644 (file)
@@ -48,7 +48,7 @@ if (!defined('__SECURITY')) {
 if (getOutputMode() != 0) return;
 
 // Create timemark from saved month
-$mark = mktime(0, 0, 0, getConfig('last_month'), date('d', time()), date('Y', time()));
+$mark = mktime(0, 0, 0, getConfig('last_month'), getDay(), getYear());
 $sql = ''; $mode = '';
 
 // Shall I sent activation or deactivation mail?
@@ -85,7 +85,7 @@ if (!empty($sql)) {
        $sentBonusMails = ((getConfig('bonus_notify_points') > 0) && ($mode == 'enable') && (isExtensionActive('bonus')));
 
        // Generate subject line
-       $subject = getMessage('BONUS_RALLYE_' . strtoupper($mode).'_NOTIFY');
+       $subject = '{--BONUS_RALLYE_' . strtoupper($mode) . '_NOTIFY--}';
 
        // Load message body for bonus mails
        $message = loadEmailTemplate('bonus_enable_notify_body', '', '{PER}userid{PER}');