Merge pull request #217 from ldidry/master

Fix automatic language detection for registered users
This commit is contained in:
Andrew Dolgov 2013-06-06 12:00:33 -07:00
commit 97b5ec8c25

View file

@ -100,7 +100,7 @@
if ($_SESSION["uid"] && get_schema_version() >= 120) {
$pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"]);
if ($pref_lang) {
if ($pref_lang && $pref_lang != 'auto') {
$lang = $pref_lang;
}
}