aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/backend.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-14 15:01:50 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-14 15:01:50 +0100
commit6ff0e668a4158f9ba2c7bd9509c48f1681259da2 (patch)
treea79d7a8723a205050aef7f1b3c2ce5377d5a3ede /ratatoeskr/backend.php
parentc6c325b562ac030bdaadb69793781c6f6c36a73f (diff)
downloadratatoeskr-cms-6ff0e668a4158f9ba2c7bd9509c48f1681259da2.tar.gz
ratatoeskr-cms-6ff0e668a4158f9ba2c7bd9509c48f1681259da2.tar.bz2
ratatoeskr-cms-6ff0e668a4158f9ba2c7bd9509c48f1681259da2.zip
We can now change the language of a user.
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r--ratatoeskr/backend.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php
index 5d736b3..78ef83c 100644
--- a/ratatoeskr/backend.php
+++ b/ratatoeskr/backend.php
@@ -1474,6 +1474,7 @@ $backend_subactions = url_action_subactions(array(
{
$user->fullname = $_POST["fullname"];
$user->mail = $_POST["mail"];
+ $user->language = $_POST["lang"];
$current_groups = array_map(function($g) { return $g->get_id(); }, $user->get_groups());
$new_groups = empty($_POST[groups_multiselect]) ? array() : $_POST["groups_multiselect"];
@@ -1528,7 +1529,8 @@ $backend_subactions = url_action_subactions(array(
"id" => $user->get_id(),
"name" => $user->username,
"fullname" => $user->fullname,
- "mail" => $user->mail
+ "mail" => $user->mail,
+ "lang" => $user->language
);
$ste->vars["groups"] = array_map(function($g) use ($user) { return array(
"id" => $g->get_id(),