aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-23 19:13:36 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-23 19:13:36 -0500
commitfe8c24ddf1275aff531d14184cfc35b631cad0ec (patch)
tree6eba6478f1785c6c7899479dc4cd32f42b7072db
parent74f3f133432cfd4100b04db66b57dcc19ab09a20 (diff)
downloadelgg-fe8c24ddf1275aff531d14184cfc35b631cad0ec.tar.gz
elgg-fe8c24ddf1275aff531d14184cfc35b631cad0ec.tar.bz2
Fixes #3716 setting the language when registering new users
-rw-r--r--engine/lib/users.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 1b3cca799..4404f42e0 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -952,6 +952,7 @@ $allow_multiple_emails = false, $friend_guid = 0, $invitecode = '') {
$user->password = generate_user_password($user, $password);
$user->owner_guid = 0; // Users aren't owned by anyone, even if they are admin created.
$user->container_guid = 0; // Users aren't contained by anyone, even if they are admin created.
+ $user->language = get_current_language();
$user->save();
// If $friend_guid has been set, make mutual friends