aboutsummaryrefslogtreecommitdiff
path: root/views/default/account/forms/login.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-07 21:49:19 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-07 21:49:19 +0000
commit7682706a46a20e3e58a9afd8ba208d5b0c040499 (patch)
treec8cb5e3d75609aa2b8f52748626bde7ffa7a041b /views/default/account/forms/login.php
parentff31226fdeb972aac2f37f0098240cb366a9bb26 (diff)
downloadelgg-7682706a46a20e3e58a9afd8ba208d5b0c040499.tar.gz
elgg-7682706a46a20e3e58a9afd8ba208d5b0c040499.tar.bz2
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
Diffstat (limited to 'views/default/account/forms/login.php')
-rw-r--r--views/default/account/forms/login.php4
1 files changed, 1 insertions, 3 deletions
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 = "<label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login_textarea')) . "</label>";
$form_body .= "<br />";
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login_textarea')) . "</label><br />";
@@ -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 .= "<div class='persistent_login'><label><input type='checkbox' name='persistent' value='true' />".elgg_echo('user:persistent')."</label></div>";
$form_body .= "<p class='loginbox'>";
-$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}pg/register/\">" . elgg_echo('register') . "</a> | " : "";
+$form_body .= $CONFIG->allow_registration ? "<a href=\"{$vars['url']}pg/register/\">" . elgg_echo('register') . '</a> | ' : '';
$form_body .= "<a href=\"{$vars['url']}account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";
$login_url = $vars['url'];