Merge pull request #513 from AngelFQC/1.10.x

Fix move sub_language.class.php
1.10.x
Angel Fernando Quiroz Campos 10 years ago
commit 4c0cef1be3
  1. 2
      main/inc/global.inc.php

@ -366,7 +366,7 @@ if (!empty($_POST['language_list'])) {
}
if (empty($user_language) && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !isset($_SESSION['_user'])) {
$l = subLanguageManager::getLanguageFromBrowserPreference($_SERVER['HTTP_ACCEPT_LANGUAGE']);
$l = SubLanguageManager::getLanguageFromBrowserPreference($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (!empty($l)) {
$user_language = $browser_language = $l;
}

Loading…
Cancel
Save