X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_beg.php;h=63440b567a33a198e2963cc3f88b5777ded38934;hb=8d4176053d397a86baca20b4d7ab7ed526355be8;hp=67fecfc51473196d2ae2dc8755c2c2ba55744277;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/monthly/monthly_beg.php b/inc/monthly/monthly_beg.php index 67fecfc514..63440b567a 100644 --- a/inc/monthly/monthly_beg.php +++ b/inc/monthly/monthly_beg.php @@ -1,7 +1,7 @@ "); - // Get current month (2 digits) -$curr = date('m', time()); +$curr = getMonth(); // Check if month is done if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && (getOutputMode() != 1)) { @@ -90,13 +90,9 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__); // Add points to user's account directly addPointsDirectly('monthly_beg', $content['userid'], $content['points']); - // Translate gender/points - $content['gender'] = translateGender($content['gender']); - $content['points'] = translateComma($content['points']); - // Load email template and email it away $message = loadEmailTemplate('member_beg', $content, bigintval($content['userid'])); - sendEmail($content['email'], getMessage('BEG_MONTHLY_RALLYE'), $message); + sendEmail($content['email'], '{--BEG_MONTHLY_RALLYE--}', $message); } // END - while // Reset accounts @@ -107,5 +103,5 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__); SQL_FREERESULT($result_main); } // END - if -// +// [EOF] ?>