From 7682706a46a20e3e58a9afd8ba208d5b0c040499 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 7 May 2010 21:49:19 +0000 Subject: Adding an option to restrict new user registration in advanced site settings. This is the first step in fully merging "Walled Garden" plugin into core Elgg engine. git-svn-id: http://code.elgg.org/elgg/trunk@5981 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/account/forms/login.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'views/default/account/forms/login.php') diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php index ec6e61cfc..baea51770 100644 --- a/views/default/account/forms/login.php +++ b/views/default/account/forms/login.php @@ -8,8 +8,6 @@ * @link http://elgg.org/ */ -global $CONFIG; - $form_body = ""; $form_body .= "
"; $form_body .= "
"; @@ -19,7 +17,7 @@ $form_body .= elgg_view('input/hidden', array('internalname' => 'returntoreferer $form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))); $form_body .= "
"; $form_body .= "

"; -$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "" . elgg_echo('register') . " | " : ""; +$form_body .= $CONFIG->allow_registration ? "" . elgg_echo('register') . ' | ' : ''; $form_body .= "" . elgg_echo('user:password:lost') . "

"; $login_url = $vars['url']; -- cgit v1.2.3