diff options
author | Friendika <info@friendika.com> | 2011-05-23 17:18:36 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-23 17:18:36 -0700 |
commit | 3e6180183bdc01edfa01dc4b966daa4081c29604 (patch) | |
tree | 57cc791da7766c07f6c3dcb323ba8539cef9cd23 /include/auth.php | |
parent | 3ea145fae7defaf959b04797afc8482bd0190352 (diff) | |
download | volse-hubzilla-3e6180183bdc01edfa01dc4b966daa4081c29604.tar.gz volse-hubzilla-3e6180183bdc01edfa01dc4b966daa4081c29604.tar.bz2 volse-hubzilla-3e6180183bdc01edfa01dc4b966daa4081c29604.zip |
improved browser language detect, set user language on login
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index 1c430406e..382d2c658 100644 --- a/include/auth.php +++ b/include/auth.php @@ -232,9 +232,11 @@ else { $_SESSION['cid'] = $a->cid; } + $l = get_language(); - q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1", + q("UPDATE `user` SET `login_date` = '%s', `language` = '%s' WHERE `uid` = %d LIMIT 1", dbesc(datetime_convert()), + dbesc($l), intval($_SESSION['uid']) ); |