]> git.wh0rd.org Git - tt-rss.git/commitdiff
only override al2gt() locale setting if saved session language is not auto
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Feb 2013 12:07:07 +0000 (16:07 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Feb 2013 12:07:07 +0000 (16:07 +0400)
include/functions.php

index 981ed595f20880f4092c82e79dd6c2aef9222bf6..2dc3426174e011be7060c5bfdaaa8719831d5c12 100644 (file)
@@ -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"];
                }