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 --- actions/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index 081a4e454..556bad4cd 100644 --- a/actions/register.php +++ b/actions/register.php @@ -24,7 +24,7 @@ if (is_array($admin)) { $admin = $admin[0]; } -if (!$CONFIG->disable_registration) { +if ($CONFIG->allow_registration) { // For now, just try and register the user try { $guid = register_user($username, $password, $name, $email, false, $friend_guid, $invitecode); -- cgit v1.2.3