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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user