]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Not allowing new user registration to continue action when disabled.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 11 May 2010 21:32:28 +0000 (21:32 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 11 May 2010 21:32:28 +0000 (21:32 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6003 36083f99-b078-4883-b0ff-0f9b5a30f544

account/register.php

index 53d7a2bbe0fbb98a7cc5a2e780092fa68b9dd4b8..6da99fab2394ce4e3e325e1095214b7ecad2bf41 100644 (file)
  */
 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');