amélioration de la redirection

This commit is contained in:
François Poulain 2016-11-11 22:11:22 +01:00 committed by root
parent c856071e06
commit 426c966792

View File

@ -59,7 +59,7 @@ if (!isset ($_SERVER['HTTP_REFERER']) or (
$current_dir= $registered_languages['fr']['loc'];
$prefered_dir= $registered_languages[prefered_language ()]['loc'];
if (basename($current_dir) != basename ($prefered_dir)) {
header ("Location: " . $prefered_dir);
header ("Location: " . url_translate ($_SERVER['REQUEST_URI'], prefered_language ()));
exit ();
}
}