From fbdfee91da43f3c087013430816497539b891888 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 24 Oct 2008 12:50:22 +0000 Subject: Further additions to the registration form. git-svn-id: https://code.elgg.org/elgg/trunk@2307 36083f99-b078-4883-b0ff-0f9b5a30f544 --- account/register.php | 4 +++- register.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/account/register.php b/account/register.php index c86c67f62..474e6edc6 100644 --- a/account/register.php +++ b/account/register.php @@ -16,9 +16,11 @@ */ require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); + $friend_guid = (int) get_input('friend_guid',0); + // If we're not logged in, display the registration page if (!isloggedin()) { - echo page_draw(elgg_echo('register'), elgg_view("account/forms/register")); + echo page_draw(elgg_echo('register'), elgg_view("account/forms/register", array('friend_guid' => $friend_guid))); // Otherwise, forward to the index page } else { forward(); diff --git a/register.php b/register.php index 442a798a9..1eb65dc4c 100644 --- a/register.php +++ b/register.php @@ -16,9 +16,11 @@ */ require_once(dirname(__FILE__) . "/engine/start.php"); + $friend_guid = (int) get_input('friend_guid',0); + // If we're not logged in, display the registration page if (!isloggedin()) { - echo page_draw(elgg_echo('register'), elgg_view("account/forms/register")); + echo page_draw(elgg_echo('register'), elgg_view("account/forms/register", array('friend_guid' => $friend_guid))); // Otherwise, forward to the index page } else { forward(); -- cgit v1.2.3