Make L10n immutable

- Remove Push/Pop
- Add "withLang($lang)" method
This commit is contained in:
nupplaPhil
2019-12-28 23:12:01 +01:00
parent ae0421f321
commit 7a2f4dc54e
7 changed files with 109 additions and 171 deletions

View File

@@ -228,6 +228,7 @@ class Register extends BaseModule
// Only send a password mail when the password wasn't manually provided
if (empty($_POST['password1']) || empty($_POST['confirm'])) {
$res = Model\User::sendRegisterOpenEmail(
L10n::withLang($arr['language']),
$user,
Config::get('config', 'sitename'),
$base_url,