https_login)) && ($CONFIG->https_login)) { $register_url = str_replace("http:", "https:", $register_url); } $form_params = array('action' => $register_url); $body_params = array( 'friend_guid' => $friend_guid, 'invitecode' => $invitecode ); $content .= elgg_view_form('register', $form_params, $body_params); $body = elgg_view_layout("one_column_with_sidebar", array('content' => $content)); echo elgg_view_page($title, $body);