diff options
author | Luc Didry <[email protected]> | 2013-06-06 21:54:47 +0300 |
---|---|---|
committer | Luc Didry <[email protected]> | 2013-06-06 21:54:47 +0300 |
commit | c4db796fc7bdd74b17b52c39ad507c68f5a5a07e (patch) | |
tree | 5777d441c8bcf9a5c76beee0b4d065ffdd253269 /include/functions.php | |
parent | 15a829013c6a04615ad98ecf636d0365f89d5923 (diff) |
Fix automatic language detection for registered users
If you do not choose a language, the db pref record for your language is an empty string, but if you choose "automatic detection" and save your prefs, it's "auto".
"auto" in startup_gettext function prevents ttrss to choose the appropriate language.
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 77725fa98..2f288737e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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; } } |