]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
lost the names when making a new function send_invitation
authorEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 00:54:18 +0000 (20:54 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 00:54:18 +0000 (20:54 -0400)
darcs-hash:20080827005418-84dde-7e7a4be646c520542e8c065ba90ba759c100b481.gz

actions/invite.php

index 1e2a9550325f93f30f82b4c0b4119ab132b22aac..f94d945b9db4c1ac2a77202345c197bd8d43c0f3 100644 (file)
@@ -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;