]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Caching of expensive PHP functions:
[mailer.git] / inc / monthly / monthly_bonus.php
index d4131cdae5a6f0637d5c47642f5fb05903ef80d4..cb010de05e74c2545ff4d830b30cc96be63a2297 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Get current month (2 digits)
-$curr = date('m', time());
+$curr = getMonth();
 
 if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && (getOutputMode() != 1)) {
        // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
@@ -100,7 +100,7 @@ LIMIT {?bonus_ranks?}", __FILE__, __LINE__);
 
                                // Load email template and email it away
                                $message = loadEmailTemplate('member_bonus', $content, bigintval($content['userid']));
-                               sendEmail($content['email'], getMessage('BONUS_MONTHLY_ONLINE_BONUS'), $message);
+                               sendEmail($content['email'], '{--BONUS_MONTHLY_ONLINE_BONUS--}', $message);
                        } // END - if
                } // END - while