Le choix de la langue utilisait encore les registers globals. Fixed. Fix #1342
Ajout des cookie dans le menu de debug.
This commit is contained in:
parent
29d91ac98d
commit
c6f2db4933
|
@ -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);
|
||||
|
|
|
@ -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+++";
|
||||
|
|
Loading…
Reference in New Issue