From: Andrew Dolgov Date: Sun, 17 Feb 2013 12:07:07 +0000 (+0400) Subject: only override al2gt() locale setting if saved session language is not auto X-Git-Tag: 1.7.1~71 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1389501e95baa2404248c6d24df6cb43c1f7b7ca;p=tt-rss.git only override al2gt() locale setting if saved session language is not auto --- diff --git a/include/functions.php b/include/functions.php index 981ed595..2dc34261 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"]; }