]> git.mxchange.org Git - friendica.git/commitdiff
don't save browser selected language on login
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 13:57:37 +0000 (15:57 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 13:57:37 +0000 (15:57 +0200)
include/security.php

index 2d6db95f4f899cd6a877198217980c27b54b7d69..b52ddeb2dfa49f6124b78ffe234d898268b80b19 100644 (file)
@@ -79,11 +79,9 @@ function authenticate_success($user_record, $login_initial = false, $interactive
        header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] .'"');
 
        if($login_initial || $login_refresh) {
-               $l = get_browser_language();
 
-               q("UPDATE `user` SET `login_date` = '%s', `language` = '%s' WHERE `uid` = %d",
+               q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d",
                        dbesc(datetime_convert()),
-                       dbesc($l),
                        intval($_SESSION['uid'])
                );