From c6f2db4933653dc460cf612e5b00f13f725f9b85 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 29 Oct 2012 15:49:47 +0000 Subject: [PATCH] Le choix de la langue utilisait encore les registers globals. Fixed. Fix #1342 Ajout des cookie dans le menu de debug. --- bureau/class/lang_env.php | 4 +++- bureau/class/m_debug_alternc.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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+++";