- // "Translate some data
- $content['subject'] = COMPILE_CODE($content['subject']);
- $content['text'] = COMPILE_CODE($content['text']);
- $content['timestamp'] = MAKE_DATETIME($content['timestamp'], "2");
- $content['category'] = GET_CATEGORY($content['cat_id']);
- $content['points'] = TRANSLATE_COMMA($content['points']);
- $content['is_notify'] = TRANSLATE_YESNO($content['is_notify']);
- $content['sender'] = _ADMIN_SHORT;
- $content['time'] = CREATE_FANCY_TIME($content['time']);
- $content['uid'] = $GLOBALS['userid'];
-
- // Get timestamp from insert
- $content['user_status'] = sprintf(MEMBER_MAIL_BONUS_CONFIRMED_ON,
- MAKE_DATETIME(USER_STATS_GET_TIMESTAMP("bonusid", $content['id']), "2")
- );
+ // Translate some data
+ $content['timestamp'] = generateDateTime($content['timestamp'], 2);
+ $content['userid'] = getMemberId();
+ $content['user_status'] = getMaskedMessage('MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN', $content['id']);
+
+ // Is ext-user installed?
+ if (isExtensionInstalled('user')) {
+ // Get timestamp from insert
+ $content['user_status'] = getMaskedMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON',
+ generateDateTime(getTimestampFromUserStats('bonusid', $content['id']), 2)
+ );
+ } // END - if