]> git.mxchange.org Git - friendica.git/commitdiff
Complete L10n::detectLanguage call parameters in Module\Register
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 10 Oct 2019 17:12:55 +0000 (13:12 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 10 Oct 2019 17:12:55 +0000 (13:12 -0400)
src/Module/Register.php

index 1aabb843937c83fbaca3bac2bf5a567f29dfc1f5..10fd1aefc9b5f6c0bfc530be179c871237b864e4 100644 (file)
@@ -196,7 +196,7 @@ class Register extends BaseModule
 
                $arr['blocked'] = $blocked;
                $arr['verified'] = $verified;
-               $arr['language'] = L10nClass::detectLanguage($a->getConfig()->get('system', 'language'));
+               $arr['language'] = L10nClass::detectLanguage($_SERVER, $_GET, $a->getConfig()->get('system', 'language'));
 
                try {
                        $result = Model\User::create($arr);