diff options
author | Andrew Dolgov <[email protected]> | 2007-08-11 17:03:31 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-11 17:03:31 +0100 |
commit | 019bd5a951f386e55350be22ff2a18dcd60f04ed (patch) | |
tree | bdf857c1418bd2c4ab259d38ffeccbcd9270cd58 /functions.php | |
parent | 6a214f923d789437cda609964d33066338a246e6 (diff) |
bump language cookie in login_sequence
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 416cf3332..bb8b7ea2f 100644 --- a/functions.php +++ b/functions.php @@ -10,7 +10,7 @@ function get_translations() { $tr = array( - "" => "Detect automatically", + "auto" => "Detect automatically", "en_US" => "English", "fr_FR" => "Français", "ru_RU" => "Русский", @@ -1413,6 +1413,11 @@ /* bump login timestamp */ db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " . $_SESSION["uid"]); + + if ($_SESSION["language"]) { + setcookie("ttrss_lang", $_SESSION["language"], + time() + SESSION_COOKIE_LIFETIME); + } } } else { |