aboutsummaryrefslogtreecommitdiff
path: root/actions/useradd.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/useradd.php')
-rw-r--r--actions/useradd.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/useradd.php b/actions/useradd.php
index d2a243336..e6e071f01 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -16,7 +16,8 @@
admin_gatekeeper(); // Only admins can make someone an admin
action_gatekeeper();
- // Get variables
+ // Get variables
+ global $CONFIG;
$username = get_input('username');
$password = get_input('password');
$password2 = get_input('password2');
@@ -40,6 +41,9 @@
$new_user->admin = 'yes';
$new_user->admin_created = true;
+
+
+ notify_user($new_user->guid, $CONFIG->site->guid, elgg_echo('useradd:subject'), sprintf(elgg_echo('useradd:body'), $name, $CONFIG->site->name, $CONFIG->site->url, $username, $password));
system_message(sprintf(elgg_echo("adduser:ok"),$CONFIG->sitename));
} else {