- // "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'] = getUserId();
+ // Translate some data
+ $content['timestamp'] = generateDateTime($content['timestamp'], 2);
+ $content['category'] = getCategory($content['cat_id']);
+ $content['points'] = translateComma($content['points']);
+ $content['is_notify'] = translateYesNo($content['is_notify']);
+ $content['sender'] = getMessage('_ADMIN_SHORT');
+ $content['time'] = createFancyTime($content['time']);
+ $content['userid'] = getUserId();