X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_100_bonus.php;h=4686d552966307861782619d0f09bb243c30e02f;hb=3b15416a92af60582c1b622e2bff5ae476c647c1;hp=f5cff9424c94cdc307b6d5dab57e7bc291fa5607;hpb=e3d74cb597fb3df15c513377856bbec373e0cb18;p=mailer.git diff --git a/inc/reset/reset_100_bonus.php b/inc/reset/reset_100_bonus.php index f5cff9424c..4686d55296 100644 --- a/inc/reset/reset_100_bonus.php +++ b/inc/reset/reset_100_bonus.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) { +} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) { // Do not execute when script is in CSS mode or no daily reset return; } elseif (!isExtensionActive('bonus')) { @@ -72,7 +72,7 @@ if (SQL_NUMROWS($result_bonus) > 0) { // Load email template and send email $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid'])); - sendEmail($content['userid'], getMessage('BONUS_MEMBER_STATS_SUBJECT'), $message); + sendEmail($content['userid'], '{--MEMBER_BONUS_STATS_SUBJECT--}', $message); // Update database $result_update = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `bonus_stats_active`='Y' WHERE `id`=%s LIMIT 1",