From a2b3db924719b111c7c01812fe3470fbbd1ae7cc Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 30 Dec 2010 04:32:04 +0000 Subject: Refs #2428 removed more CONFIG uses git-svn-id: http://code.elgg.org/elgg/trunk@7769 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/register.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index 1a0954e3b..33ee19aee 100644 --- a/actions/register.php +++ b/actions/register.php @@ -6,8 +6,6 @@ * @subpackage User.Account */ -global $CONFIG; - // Get variables $username = get_input('username'); $password = get_input('password'); @@ -17,7 +15,7 @@ $name = get_input('name'); $friend_guid = (int) get_input('friend_guid', 0); $invitecode = get_input('invitecode'); -if ($CONFIG->allow_registration) { +if (elgg_get_config('allow_registration')) { try { if (trim($password) == "" || trim($password2) == "") { throw new RegistrationException(elgg_echo('RegistrationException:EmptyPassword')); @@ -52,7 +50,7 @@ if ($CONFIG->allow_registration) { throw new RegistrationException(elgg_echo('registerbad')); } - system_message(elgg_echo("registerok", array($CONFIG->sitename))); + system_message(elgg_echo("registerok", array(elgg_get_site_entity()->name))); // if exception thrown, this probably means there is a validation // plugin that has disabled the user -- cgit v1.2.3