From e210f797ff2dda5785e64380234f1ee876bc5c12 Mon Sep 17 00:00:00 2001 From: nickw Date: Tue, 11 May 2010 21:32:28 +0000 Subject: Not allowing new user registration to continue action when disabled. git-svn-id: http://code.elgg.org/elgg/trunk@6003 36083f99-b078-4883-b0ff-0f9b5a30f544 --- account/register.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/account/register.php b/account/register.php index 53d7a2bbe..6da99fab2 100644 --- a/account/register.php +++ b/account/register.php @@ -14,6 +14,12 @@ */ require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); +// check new registration allowed +if (!$CONFIG->allow_registration) { + register_error(elgg_echo('registerdisabled')); + forward(); +} + $friend_guid = (int) get_input('friend_guid',0); $invitecode = get_input('invitecode'); -- cgit v1.2.3