summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-30 09:34:24 +0400
committerAndrew Dolgov <[email protected]>2013-04-30 09:34:24 +0400
commitb18d109f22975e9313b7064d86417e213804ee80 (patch)
treebbda03330d12253596b358da5b921c448dc2ced7 /include
parentd3321170582af40276c48c70af18372c93b01311 (diff)
only get USER_LANGUAGE on schema 120 and up
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index b3130104b..c39b4938c 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -97,8 +97,8 @@
$lang = _TRANSLATION_OVERRIDE_DEFAULT;
}
- if ($_SESSION["uid"]) {
- $pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"], false);
+ if ($_SESSION["uid"] && get_schema_version() >= 120) {
+ $pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"]);
if ($pref_lang) {
$lang = $pref_lang;