1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00

Fix a bug, which made language specifying shortcuts

(eg. /it/books) not work.
This commit is contained in:
Gabor Hojtsy
2003-07-25 16:54:07 +00:00
parent 654aaeded5
commit 18df8ff1ef

View File

@@ -61,11 +61,11 @@ function language_choose_code()
if (preg_match("!^/(\\w{2}(_\\w{2})?)/!", $_SERVER['REQUEST_URI'], $flang)) {
// Put language into preference list
$flang = language_add($flang[1], $languages);
$rlang = language_add($flang[1], $languages);
// Set explicity specified language
if (empty($explicitly_specified)) {
$explicitly_specified = $flang;
$explicitly_specified = $rlang;
}
// Drop out langauge specification from URL, as this is already handled