From: nickw Date: Tue, 11 May 2010 21:32:28 +0000 (+0000) Subject: Not allowing new user registration to continue action when disabled. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e210f797ff2dda5785e64380234f1ee876bc5c12;p=lorea%2Felgg.git 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 --- 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');