- // @TODO Rewrite templates so s/fname will be replaced by surname/family
- // @TODO to shorten this block. Please also do so with uid->userid
- $content = array(
- 'uid' => $content['userid'],
- 'email' => CREATE_EMAIL_LINK($content['email'], "user_data"),
- 'gender' => TRANSLATE_GENDER($content['gender']),
- 'sname' => $content['surname'],
- 'fname' => $content['family'],
- 'turbo' => TRANSLATE_COMMA($content['beg_points']),
- 'last' => MAKE_DATETIME($content['last_online'], "2"),
- 'sw' => $SW,
- 'win1' => $WIN1,
- 'win2' => $WIN2,
- 'cnt' => $cnt,
+ $row = array(
+ 'userid' => $content['userid'],
+ 'email' => generateEmailLink($content['email'], 'user_data'),
+ 'last_online' => generateDateTime($content['last_online'], '2'),
+ 'win1' => $WIN1,
+ 'win2' => $WIN2,
+ 'count' => $count,