aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-24 11:35:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-24 11:35:31 +0000
commit6aa583f43da02138b0e8f26390e08b6a0d9e2ece (patch)
treeccccaf8dbe2d83ba287956ff8b8fd9b5ca3450fa /actions
parente0d99db103d1b0b0a73ae5b41ab3d332334cb099 (diff)
downloadelgg-6aa583f43da02138b0e8f26390e08b6a0d9e2ece.tar.gz
elgg-6aa583f43da02138b0e8f26390e08b6a0d9e2ece.tar.bz2
Added the ability to add a user to a user's friends list on registration.
git-svn-id: https://code.elgg.org/elgg/trunk@2304 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/register.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/register.php b/actions/register.php
index 7a8a01c5d..a92f37f54 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -22,6 +22,7 @@
$password2 = get_input('password2');
$email = get_input('email');
$name = get_input('name');
+ $friend_guid = (int) get_input('friend_guid',0);
$admin = get_input('admin');
if (is_array($admin)) $admin = $admin[0];
@@ -37,7 +38,7 @@
(trim($password)!="") &&
(strcmp($password, $password2)==0)
) &&
- ($guid = register_user($username, $password, $name, $email))
+ ($guid = register_user($username, $password, $name, $email, $friend_guid))
) {
$new_user = get_entity($guid);