]> git.mxchange.org Git - friendica.git/commitdiff
On registration use the browser preferred language for the new account
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 13:55:56 +0000 (15:55 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 1 Oct 2016 13:55:56 +0000 (15:55 +0200)
mod/register.php

index 6fc5887ef5c32734d27ad3900c3037cfd82016e2..4f5652f2f76f76e9dad5d7f137240f482f1b90d8 100644 (file)
@@ -52,6 +52,7 @@ function register_post(&$a) {
 
        $arr['blocked'] = $blocked;
        $arr['verified'] = $verified;
+       $arr['language'] = get_browser_language();
 
        $result = create_user($arr);