BUGFIX: removed side effect from getting the user's preferences: the language used...
[e-DoKo.git] / include / user.php
index 3d0b7291f178e66d59e6fe3c3dc8061963d5eb84..1b3d83e69d2b20d95ef01cf6a6bd25addd244fcc 100644 (file)
@@ -121,6 +121,8 @@ else
        $_SESSION['name'] = $myname;
 
        $PREF = DB_get_PREF($myid);
+       /* set language chosen in preferences, will become active on the next reload (see index.php)*/
+       $_SESSION['language'] = $PREF['language'];
 
        DB_update_user_timestamp($myid);