diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-11-19 16:46:48 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-11-19 16:46:48 +0000 |
| commit | 4bdd926a1c6238fe49cc3a8b26e7ce1539ebb764 (patch) | |
| tree | 19deb331e4204003b11b88cc2f1e98cc2440b402 /include/functions.php | |
| parent | 394d606fe977a331f733c62e5509469c2eb3ef31 (diff) | |
| parent | 154abc61a0f81bee7757fc57e594f3f4bccc0fdf (diff) | |
Merge branch 'feature/replace-get_pref-and-set_pref' into 'master'
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
See merge request tt-rss/tt-rss!75
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 a79a19711..c77b68828 100644 --- a/include/functions.php +++ b/include/functions.php @@ -148,7 +148,7 @@ } if (!empty($_SESSION["uid"]) && get_schema_version() >= 120) { - $pref_locale = get_pref(Prefs::USER_LANGUAGE, $_SESSION["uid"]); + $pref_locale = Prefs::get(Prefs::USER_LANGUAGE, $_SESSION["uid"], $_SESSION["profile"] ?? null); if (!empty($pref_locale) && $pref_locale != 'auto') { $selected_locale = $pref_locale; |