- $username = $a->user['username'];
- $email = $a->user['email'];
- $nickname = $a->user['nickname'];
- $timezone = $a->user['timezone'];
- $language = $a->user['language'];
- $notify = $a->user['notify-flags'];
- $defloc = $a->user['default-location'];
- $openid = $a->user['openid'];
- $maxreq = $a->user['maxreq'];
- $expire = ((intval($a->user['expire'])) ? $a->user['expire'] : '');
- $unkmail = $a->user['unkmail'];
- $cntunkmail = $a->user['cntunkmail'];
+ $user = User::getById($a->getLoggedInUserId());
+
+ $username = $user['username'];
+ $email = $user['email'];
+ $nickname = $a->getLoggedInUserNickname();
+ $timezone = $user['timezone'];
+ $language = $user['language'];
+ $notify = $user['notify-flags'];
+ $defloc = $user['default-location'];
+ $openid = $user['openid'];
+ $maxreq = $user['maxreq'];
+ $expire = ((intval($user['expire'])) ? $user['expire'] : '');
+ $unkmail = $user['unkmail'];
+ $cntunkmail = $user['cntunkmail'];