summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-26 20:54:18 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-26 20:54:18 -0400
commit37991eace858ab6b03f7bbc88bb6f784c4fb9b9f (patch)
tree30672a0a79973a92d405efc59245a41e6657466e
parentebf5d52f74b9441c1b65fb4cd2492fc21893664f (diff)
lost the names when making a new function send_invitation
darcs-hash:20080827005418-84dde-7e7a4be646c520542e8c065ba90ba759c100b481.gz
-rw-r--r--actions/invite.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/invite.php b/actions/invite.php
index 1e2a95503..f94d945b9 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;