aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php
index 67e21d988..fd80a63e2 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'])
);