summaryrefslogtreecommitdiff
path: root/modules/user/controllers/admin_users.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-25 16:21:36 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-25 16:21:36 +0000
commit3cb2c42e49b008facff1563b0e9b1d5b5c67e77c (patch)
tree861ec26774766776ef71be0c572fe99da2219440 /modules/user/controllers/admin_users.php
parent961d5e11cf844e412bfcd8baa0e2d776e0ec2bb6 (diff)
Fix for ticket #181. Valiant take note of the change to
admin_users.php. I had to remove the check for the locale as it hasn't been added to the form.
Diffstat (limited to 'modules/user/controllers/admin_users.php')
-rw-r--r--modules/user/controllers/admin_users.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user/controllers/admin_users.php b/modules/user/controllers/admin_users.php
index 14c4c593..4f3ea65a 100644
--- a/modules/user/controllers/admin_users.php
+++ b/modules/user/controllers/admin_users.php
@@ -41,8 +41,10 @@ class Admin_Users_Controller extends Controller {
$user = user::create(
$name, $form->add_user->full_name->value, $form->add_user->password->value);
$user->email = $form->add_user->email->value;
- $desired_locale = $form->add_user->locale->value;
- $user->locale = $desired_locale == "none" ? null : $desired_locale;
+
+ // @todo Add locale to the user add form
+ $user->locale = null;
+
$user->save();
message::success(t("Created user %user_name", array("user_name" => $user->name)));
print json_encode(array("result" => "success"));