diff --git a/bureau/class/lang_env.php b/bureau/class/lang_env.php index af9ee7da..42398392 100644 --- a/bureau/class/lang_env.php +++ b/bureau/class/lang_env.php @@ -15,10 +15,12 @@ function update_locale($langpath) { return $locales; } - // setlang is on the link at the login page if (isset($_REQUEST["setlang"])) { $lang=$_REQUEST["setlang"]; + $setlang=$_REQUEST["setlang"]; +} elseif (isset($_COOKIE['lang'])) { + $lang=$_COOKIE['lang']; } $langpath = bindtextdomain("alternc", ALTERNC_LOCALES); diff --git a/bureau/class/m_debug_alternc.php b/bureau/class/m_debug_alternc.php index 9f4d5cf1..34179814 100644 --- a/bureau/class/m_debug_alternc.php +++ b/bureau/class/m_debug_alternc.php @@ -67,6 +67,8 @@ class m_debug_alternc { print_r($_GET); echo "\n\n--- POST ---\n"; print_r($_POST); + echo "\n\n--- COOKIE ---\n"; + print_r($_COOKIE); echo "\n\n--- SERVER ---\n"; print_r($_SERVER); echo "\n\n+++ END Debug Mode+++";