fix #3224
This commit is contained in:
parent
b0caf41b06
commit
b5bd31e17c
@ -55,12 +55,12 @@ $server_names= array('expolibre.org', 'www.expolibre.org', 'libreexpo.org', 'www
|
||||
if (!isset ($_SERVER['HTTP_REFERER']) or (
|
||||
strrpos ($_SERVER['HTTP_REFERER'], 'expolibre.org') === false and
|
||||
strrpos ($_SERVER['HTTP_REFERER'], 'libreexpo.org') === false)) {
|
||||
if ($current_dir == "htdocs")
|
||||
if ($current_dir == "htdocs") {
|
||||
$current_dir= $registered_languages['fr']['loc'];
|
||||
$prefered_dir= $registered_languages[prefered_language ()]['loc'];
|
||||
if (basename($current_dir) != basename ($prefered_dir)) {
|
||||
header ("Location: " . url_translate ($_SERVER['REQUEST_URI'], prefered_language ()));
|
||||
exit ();
|
||||
$prefered_dir= $registered_languages[prefered_language ()]['loc'];
|
||||
if (basename($current_dir) != basename ($prefered_dir)) {
|
||||
header ("Location: " . url_translate ($_SERVER['REQUEST_URI'], prefered_language ()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user