From 4503c58bc954671503650223bbcabe7a2951d415 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 02:55:41 +0000 Subject: Refs #2428 removed some uses of CONFIG in the views git-svn-id: http://code.elgg.org/elgg/trunk@7996 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/core/account/login_box.php | 2 +- views/default/core/account/login_dropdown.php | 2 +- views/default/core/account/login_walled_garden.php | 22 ++-------------------- 3 files changed, 4 insertions(+), 22 deletions(-) (limited to 'views/default/core/account') diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php index 0dee72328..a371ab0c8 100644 --- a/views/default/core/account/login_box.php +++ b/views/default/core/account/login_box.php @@ -9,7 +9,7 @@ $form_body = elgg_view('forms/login'); $login_url = elgg_get_site_url(); -if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { +if (elgg_get_config('https_login')) { $login_url = str_replace("http:", "https:", $login_url); } ?> diff --git a/views/default/core/account/login_dropdown.php b/views/default/core/account/login_dropdown.php index 386a52a6c..356aa48de 100644 --- a/views/default/core/account/login_dropdown.php +++ b/views/default/core/account/login_dropdown.php @@ -12,7 +12,7 @@ $form_body = elgg_view('forms/login'); $form_body .= ""; $login_url = elgg_get_site_url(); -if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { +if (elgg_get_config('https_login')) { $login_url = str_replace("http", "https", elgg_get_site_url()); } diff --git a/views/default/core/account/login_walled_garden.php b/views/default/core/account/login_walled_garden.php index 8b801ed1d..9335c0dfd 100644 --- a/views/default/core/account/login_walled_garden.php +++ b/views/default/core/account/login_walled_garden.php @@ -2,30 +2,12 @@ /** * Walled Garden Login Form */ - -global $CONFIG; - -/* -$form_body = ""; -$form_body .= "
"; -$form_body .= "
"; - -$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))); -$form_body .= "
"; - -$register = elgg_echo('register'); -$lost_password = elgg_echo('user:password:lost'); -$form_body .= '

'; -$form_body .= $CONFIG->allow_registration ? "$register | " : ''; -$form_body .= "$lost_password"; -$form_body .= '

'; -*/ $form_body = elgg_view('forms/login'); $form_body .= elgg_view('input/hidden', array('internalname' => 'returntoreferer', 'value' => 'true')); $login_url = elgg_get_site_url(); -if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { +if (elgg_get_config('https_login')) { $login_url = str_replace("http", "https", elgg_get_site_url()); } ?> @@ -36,7 +18,7 @@ if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { ?> allow_registration) { +if (elgg_get_config('allow_registration')) { $title = elgg_echo('register'); $body = elgg_view("account/forms/register", array( 'friend_guid' => (int) get_input('friend_guid', 0), -- cgit v1.2.3