diff options
Diffstat (limited to 'include/game.php')
-rw-r--r-- | include/game.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/game.php b/include/game.php index 3890c02..f862fec 100644 --- a/include/game.php +++ b/include/game.php @@ -57,6 +57,9 @@ $playid = DB_get_current_playid($gameid); /* might be -1 at beginning of the g /* get prefs and save them in a variable*/ $PREF = DB_get_PREF(isset($_SESSION['id'])?$_SESSION['id']:$myid); +/* set language chosen in preferences, will become active on the next reload (see index.php)*/ +$_SESSION['language'] = $PREF['language']; + /* get rule set for this game */ $RULES = DB_get_RULES($gameid); |