}
// Do not execute when script is in CSS mode
-if (getOutputMode() != 0) return;
+if (getScriptOutputMode() != 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?
$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}');