fixing lang_env messup

This commit is contained in:
Benjamin Sonntag 2007-09-09 20:17:48 +00:00
parent 402b11c5bc
commit 3751a50569
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ $locales=array("fr_FR"=>"fr_FR","en_US"=>"en_US");
// Create or update a locale.php file if it is outdated. // Create or update a locale.php file if it is outdated.
update_locale(); update_locale();
if (!(isset($lang)) { // Use the browser first preferred language if (!(isset($lang))) { // Use the browser first preferred language
$lang=strtolower(substr(trim($_SERVER["HTTP_ACCEPT_LANGUAGE"]),0,5)); $lang=strtolower(substr(trim($_SERVER["HTTP_ACCEPT_LANGUAGE"]),0,5));
} }