summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-17 22:14:08 +0000
committerwn_ <invalid@email.com>2024-11-18 21:59:45 +0000
commit154abc61a0f81bee7757fc57e594f3f4bccc0fdf (patch)
tree19deb331e4204003b11b88cc2f1e98cc2440b402 /include
parent394d606fe977a331f733c62e5509469c2eb3ef31 (diff)
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
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;