amélioration de la redirection
This commit is contained in:
parent
c856071e06
commit
426c966792
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user