diff options
author | Arun Persaud <arun@nubati.net> | 2012-12-31 15:11:45 +0000 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2012-12-31 15:11:45 +0000 |
commit | aeb9ef98850e762291bc6a1d39b31d1ac4db4817 (patch) | |
tree | 263ce358d5299b3b1214279b58b33ba9bf73f4ca /include/stats.php | |
parent | 059f17ad6897e250b2bdfdc9837a39af62859d7e (diff) | |
download | e-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/stats.php')
-rw-r--r-- | include/stats.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stats.php b/include/stats.php index f0d436b..bb6d693 100644 --- a/include/stats.php +++ b/include/stats.php @@ -37,6 +37,7 @@ if(!$myid) $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); |