summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-17 16:07:07 +0400
committerAndrew Dolgov <[email protected]>2013-02-17 16:07:07 +0400
commit1389501e95baa2404248c6d24df6cb43c1f7b7ca (patch)
tree7e63733433a139867b355c759d1bb5af9bdf4bec /include
parent0de0b05df4cdbd078765df2503904d7335ca64d8 (diff)
only override al2gt() locale setting if saved session language is not auto
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 981ed595f..2dc342617 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -76,7 +76,7 @@
/* In login action of mobile version */
if ($_POST["language"] && defined('MOBILE_VERSION')) {
$lang = $_POST["language"];
- } else {
+ } else if ($_SESSION["language"] && $_SESSION["language"] != "auto") {
$lang = $_SESSION["language"];
}