mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
Refactor L10n for testing
This commit is contained in:
commit
0b97b32a59
13 changed files with 596 additions and 450 deletions
|
@ -7,10 +7,10 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\L10n\L10n as L10nClass;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model;
|
||||
|
@ -203,7 +203,7 @@ class Register extends BaseModule
|
|||
|
||||
$arr['blocked'] = $blocked;
|
||||
$arr['verified'] = $verified;
|
||||
$arr['language'] = L10n::detectLanguage();
|
||||
$arr['language'] = L10nClass::detectLanguage($a->getConfig()->get('system', 'language'));
|
||||
|
||||
try {
|
||||
$result = Model\User::create($arr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue