aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 04:32:04 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 04:32:04 +0000
commita2b3db924719b111c7c01812fe3470fbbd1ae7cc (patch)
tree3d4d96a3b91361b177553f9af506ec7f17c14b6b /actions/register.php
parent010bc9650139814f2c74a24b6e320c5c4373e5c4 (diff)
downloadelgg-a2b3db924719b111c7c01812fe3470fbbd1ae7cc.tar.gz
elgg-a2b3db924719b111c7c01812fe3470fbbd1ae7cc.tar.bz2
Refs #2428 removed more CONFIG uses
git-svn-id: http://code.elgg.org/elgg/trunk@7769 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php6
1 files changed, 2 insertions, 4 deletions
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