diff options
author | Andrew Dolgov <[email protected]> | 2013-04-30 09:34:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-30 09:34:24 +0400 |
commit | b18d109f22975e9313b7064d86417e213804ee80 (patch) | |
tree | bbda03330d12253596b358da5b921c448dc2ced7 /classes/handler/public.php | |
parent | d3321170582af40276c48c70af18372c93b01311 (diff) |
only get USER_LANGUAGE on schema 120 and up
Diffstat (limited to 'classes/handler/public.php')
-rw-r--r-- | classes/handler/public.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 2b5169ca7..d5933a18c 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -510,7 +510,10 @@ class Handler_Public extends Handler { if (authenticate_user($login, $password)) { $_POST["password"] = ""; - $_SESSION["language"] = get_pref("USER_LANGUAGE", $_SESSION["uid"], false); + if (get_schema_version() >= 120) { + $_SESSION["language"] = get_pref("USER_LANGUAGE", $_SESSION["uid"]); + } + $_SESSION["ref_schema_version"] = get_schema_version(true); $_SESSION["bw_limit"] = !!$_POST["bw_limit"]; |