diff --git a/actions/invite.php b/actions/invite.php index 1e2a955032..f94d945b9d 100644 --- a/actions/invite.php +++ b/actions/invite.php @@ -143,6 +143,11 @@ class InviteAction extends Action { function send_invitation($email, $user, $personal) { + $profile = $user->getProfile(); + $bestname = $profile->getBestName(); + + $sitename = common_config('site', 'name'); + $invite = new Invitation(); $invite->address = $email;