X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FUser.php;h=c9c61d3aed40606267eb5e6268b624b91e39a1c4;hb=a2d8305e2159f60df979898983b5fe4ccf166a16;hp=26225916f1e70cee2a0f261a245b475d737210fb;hpb=97d8e4571f69479ea31ae57aa1df1e8e888d5594;p=quix0rs-gnu-social.git diff --git a/classes/User.php b/classes/User.php index 26225916f1..c9c61d3aed 100644 --- a/classes/User.php +++ b/classes/User.php @@ -384,8 +384,7 @@ class User extends Managed_DataObject if (!empty($email) && empty($user->email)) { try { - require_once(INSTALLDIR . '/lib/mail.php'); - mail_confirm_address($user, $confirm->code, $profile->getNickname(), $email); + $confirm->sendConfirmation(); } catch (EmailException $e) { common_log(LOG_ERR, "Could not send user registration email for user id=={$profile->getID()}: {$e->getMessage()}"); if (!$accept_email_fail) {