Replace global $lang with system.language

This commit is contained in:
Hypolite Petovan
2018-07-09 22:37:51 -04:00
parent adacf421a6
commit d0780ccf7d
6 changed files with 16 additions and 26 deletions

View File

@@ -21,8 +21,6 @@ function register_post(App $a)
{
check_form_security_token_redirectOnErr('/register', 'register');
global $lang;
$verified = 0;
$blocked = 1;
@@ -123,7 +121,7 @@ function register_post(App $a)
dbesc(DateTimeFormat::utcNow()),
intval($user['uid']),
dbesc($result['password']),
dbesc($lang),
dbesc(Config::get('system', 'language')),
dbesc($_POST['permonlybox'])
);