Move $strings from App to Core\L10n
- Add L10n::init() call in App constructor - Improve pushLang/popLang - Remove no longer needed references to App
This commit is contained in:
parent
baa1094489
commit
c6f0bea51d
6 changed files with 137 additions and 80 deletions
|
@ -63,7 +63,7 @@ function register_post(App $a)
|
|||
|
||||
$arr['blocked'] = $blocked;
|
||||
$arr['verified'] = $verified;
|
||||
$arr['language'] = L10n::getBrowserLanguage();
|
||||
$arr['language'] = L10n::detectLanguage();
|
||||
|
||||
try {
|
||||
$result = Model\User::create($arr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue