return;
}
- mail_confirm_address($confirm->code,
- $user->nickname,
- $email);
+ mail_confirm_address($user, $confirm->code, $user->nickname, $email);
$msg = _('A confirmation code was sent to the email address you added. Check your inbox (and spam box!) for the code and instructions on how to use it.');
$profile->query('COMMIT');
if ($email && !$user->email) {
- mail_confirm_address($confirm->code,
- $profile->nickname,
- $email);
+ mail_confirm_address($user, $confirm->code, $profile->nickname, $email);
}
return $user;
# For confirming a Jabber address
-function mail_confirm_address($code, $nickname, $address) {
- $user = common_current_user();
+function mail_confirm_address($user, $code, $nickname, $address) {
+
$subject = _('Email address confirmation');
$body = sprintf(_("Hey, %s.\n\nSomeone just entered this email address on %s.\n\n" .