aboutsummaryrefslogtreecommitdiff
path: root/account
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-11 21:32:28 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-11 21:32:28 +0000
commite210f797ff2dda5785e64380234f1ee876bc5c12 (patch)
tree1125b84082ec4dd2187a3294d5d3e14bc32e1d9a /account
parentea60659b650a4de624215f5df8b8aa8fb4ff3093 (diff)
downloadelgg-e210f797ff2dda5785e64380234f1ee876bc5c12.tar.gz
elgg-e210f797ff2dda5785e64380234f1ee876bc5c12.tar.bz2
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
Diffstat (limited to 'account')
-rw-r--r--account/register.php6
1 files changed, 6 insertions, 0 deletions
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');