aboutsummaryrefslogtreecommitdiff
path: root/actions/useradd.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/useradd.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/useradd.php')
-rw-r--r--actions/useradd.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/actions/useradd.php b/actions/useradd.php
index dd6edfe31..0219361fb 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -7,7 +7,6 @@
*/
// Get variables
-global $CONFIG;
$username = get_input('username');
$password = get_input('password');
$password2 = get_input('password2');
@@ -33,12 +32,17 @@ try {
$new_user->created_by_guid = get_loggedin_userid();
$subject = elgg_echo('useradd:subject');
- $body = elgg_echo('useradd:body', array($name,
- $CONFIG->site->name, $CONFIG->site->url, $username, $password));
+ $body = elgg_echo('useradd:body', array(
+ $name,
+ elgg_get_site_entity()->name,
+ elgg_get_site_entity()->url,
+ $username,
+ $password,
+ ));
- notify_user($new_user->guid, $CONFIG->site->guid, $subject, $body);
+ notify_user($new_user->guid, elgg_get_site_entity()->guid, $subject, $body);
- system_message(elgg_echo("adduser:ok", array($CONFIG->sitename)));
+ system_message(elgg_echo("adduser:ok", array(elgg_get_site_entity()->name)));
} else {
register_error(elgg_echo("adduser:bad"));
}