$content['uid'] = $GLOBALS['userid'];
// Get timestamp from insert
- $content['user_status'] = sprintf(MEMBER_MAIL_BONUS_CONFIRMED_ON,
+ $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
MAKE_DATETIME(USER_STATS_GET_TIMESTAMP("bonusid", $content['id']), "2")
);
$content['uid'] = $GLOBALS['userid'];
// Get timestamp from insert
- $content['user_status'] = sprintf(MEMBER_MAIL_NORMAL_CONFIRMED_ON,
+ $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_NORMAL_CONFIRMED_ON'),
MAKE_DATETIME(USER_STATS_GET_TIMESTAMP("mailid", $content['id']), "2")
);
WHERE s.id=%s
LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
- $type = "mailid"; $DATA = $id; $PROBLEM = NORMAL_MAIL_PROBLEM;
+ $type = "mailid"; $DATA = $id; $PROBLEM = getMessage('NORMAL_MAIL_PROBLEM');
break;
case "BONUS":
$result_data = SQL_QUERY_ESC("SELECT subject, timestamp, cat_id, points, 0 FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id=%s LIMIT 1",
array(bigintval($id2)), __FILE__, __LINE__);
- $type = "bonusid"; $DATA = $id2; $PROBLEM = BONUS_MAIL_PROBLEM;
+ $type = "bonusid"; $DATA = $id2; $PROBLEM = getMessage('BONUS_MAIL_PROBLEM');
break;
default: // Unknown type detected!
// Subject line found?
if (empty($subject)) {
// No subject line!
- $subject = DEFAULT_SUBJECT_LINE;
+ $subject = getMessage('DEFAULT_SUBJECT_LINE');
} else {
// Compile it
$subject = COMPILE_CODE($subject);
$sender = bigintval($sender);
} elseif ($type == "bonusid") {
// Is admin
- $sender = _ADMIN_SHORT;
+ $sender = getMessage('_ADMIN_SHORT');
} else {
// Deleted
- $sender = EMAIL_STATUS_DELETED;
+ $sender = getMessage('EMAIL_STATUS_DELETED');
}
// Prepare data for template