Update functions and calls
Update function names and calls.
This commit is contained in:
parent
417b32c881
commit
c8ecc31405
16 changed files with 209 additions and 189 deletions
|
@ -1,8 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/register.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -58,7 +61,7 @@ function register_post(App $a)
|
|||
|
||||
$arr['blocked'] = $blocked;
|
||||
$arr['verified'] = $verified;
|
||||
$arr['language'] = get_browser_language();
|
||||
$arr['language'] = L10n::getBrowserLanguage();
|
||||
|
||||
try {
|
||||
$result = User::create($arr);
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/regmod.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
|
@ -50,7 +53,7 @@ function user_allow($hash)
|
|||
}
|
||||
}
|
||||
|
||||
push_lang($register[0]['language']);
|
||||
L10n::pushLang($register[0]['language']);
|
||||
|
||||
User::sendRegisterOpenEmail(
|
||||
$user[0]['email'],
|
||||
|
@ -59,7 +62,7 @@ function user_allow($hash)
|
|||
$user[0]['username'],
|
||||
$register[0]['password']);
|
||||
|
||||
pop_lang();
|
||||
L10n::popLang();
|
||||
|
||||
if ($res) {
|
||||
info(t('Account approved.') . EOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue