summaryrefslogtreecommitdiffstats
path: root/include/user.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-12-31 15:11:45 +0000
committerArun Persaud <arun@nubati.net>2012-12-31 15:11:45 +0000
commitaeb9ef98850e762291bc6a1d39b31d1ac4db4817 (patch)
tree263ce358d5299b3b1214279b58b33ba9bf73f4ca /include/user.php
parent059f17ad6897e250b2bdfdc9837a39af62859d7e (diff)
downloade-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.tar.gz
e-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.tar.bz2
e-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.zip
improved language detection using browser information; set the language directly in more places
previously one had to reload to get the language correct, now it should be correct right away. We also read out the browser request for a language now.
Diffstat (limited to 'include/user.php')
-rw-r--r--include/user.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/user.php b/include/user.php
index 607e89d..551e7d5 100644
--- a/include/user.php
+++ b/include/user.php
@@ -120,6 +120,7 @@ else
$PREF = DB_get_PREF($myid);
/* set language chosen in preferences, will become active on the next reload (see index.php)*/
$_SESSION['language'] = $PREF['language'];
+ set_language($PREF['language']);
DB_update_user_timestamp($myid);