From aeb9ef98850e762291bc6a1d39b31d1ac4db4817 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 31 Dec 2012 15:11:45 +0000 Subject: 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. --- include/game.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/game.php') diff --git a/include/game.php b/include/game.php index ae7d6f7..d116049 100644 --- a/include/game.php +++ b/include/game.php @@ -59,6 +59,7 @@ $playid = DB_get_current_playid($gameid); /* might be -1 at beginning of the g $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']; +set_language($PREF['language']); /* get rule set for this game */ -- cgit v1.2.3-18-g5258