diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 11:48:29 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 11:48:29 +0000 |
commit | eabcb5a3d13141c40bd47da228520c5281741d68 (patch) | |
tree | 7436cd5d87e7f809e96810968adb552da396c19f /views/default | |
parent | 79d8246b77654b98d0f60359ccc05f976879d5aa (diff) | |
download | elgg-eabcb5a3d13141c40bd47da228520c5281741d68.tar.gz elgg-eabcb5a3d13141c40bd47da228520c5281741d68.tar.bz2 |
Refs #866 - registration uses https if configured for login
git-svn-id: http://code.elgg.org/elgg/trunk@7281 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/account/forms/register.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php index 828a99b4b..157104b2d 100644 --- a/views/default/account/forms/register.php +++ b/views/default/account/forms/register.php @@ -6,6 +6,11 @@ * @subpackage Core */ +$register_url = elgg_get_site_url(); +if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { + $register_url = str_replace("http:", "https:", $register_url); +} + $username = get_input('u'); $email = get_input('e'); $name = get_input('n'); @@ -38,7 +43,11 @@ $form_body .= elgg_view('input/hidden', array('internalname' => 'invitecode', 'v $form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>"; -echo elgg_view('input/form', array('action' => "action/register", 'body' => $form_body, 'class' => "margin_top")); +echo elgg_view('input/form', array( + 'action' => "{$login_url}action/register", + 'body' => $form_body, + 'class' => "margin_top" +)); ?> <script type="text/javascript"> |