aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Register.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-07 08:15:06 +0000
committerMario <mario@mariovavti.com>2021-05-07 08:15:06 +0000
commit9ad2b017e235e26f0d7fee26e2fc9dd532dd8629 (patch)
tree1a5c2fda39d9d2e714930506961e778e8f703e26 /Zotlabs/Module/Register.php
parent1fd5f5c893d224a523ecf279ec65c1cf933b2065 (diff)
downloadvolse-hubzilla-9ad2b017e235e26f0d7fee26e2fc9dd532dd8629.tar.gz
volse-hubzilla-9ad2b017e235e26f0d7fee26e2fc9dd532dd8629.tar.bz2
volse-hubzilla-9ad2b017e235e26f0d7fee26e2fc9dd532dd8629.zip
register: fix language issue and add additional info to the infobox if email verification is configured
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r--Zotlabs/Module/Register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index ecdcd90dd..683fcdc36 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -322,7 +322,7 @@ class Register extends Controller {
$did2 = $email;
$didx = 'e';
- push_lang(($reg['lang']) ? $reg['lang'] : 'en');
+ push_lang(($reg['lang']) ? $reg['lang'] : App::$language);
$reonar['from'] = get_config('system', 'from_email');
$reonar['to'] = $email;
$reonar['subject'] = sprintf( t('Registration confirmation for %s'), get_config('system','sitename'));
@@ -375,7 +375,7 @@ class Register extends Controller {
dbesc($regexpire),
dbesc($email),
dbesc($password),
- dbesc(substr(get_best_language(),0,2)),
+ dbesc(App::$language),
dbesc($ip),
dbesc(json_encode($reonar))
);