summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 14:49:58 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 14:49:58 +0300
commitc96172fa044d847fee237d966a6e75f8be5afa4d (patch)
treecdd79fdea548ab41b642fca12be7634ad8d25d2d /include/functions.php
parent5aa05c90e1b979a2dd8985c10a541243e9415c39 (diff)
use constants in get_pref()/set_pref()
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 8e819fac0..a26ea6fca 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -140,7 +140,7 @@
}
if (!empty($_SESSION["uid"]) && get_schema_version() >= 120) {
- $pref_locale = get_pref("USER_LANGUAGE", $_SESSION["uid"]);
+ $pref_locale = get_pref(Prefs::USER_LANGUAGE, $_SESSION["uid"]);
if (!empty($pref_locale) && $pref_locale != 'auto') {
$selected_locale = $pref_locale;