$params['to_email'] = ($params['to_email'] ?? '') ?: $user['email'];
// from here on everything is in the recipients language
- $l10n = L10n::withLang($params['language']);
+ $l10n = DI::l10n()->withLang($params['language']);
$banner = $l10n->t('Friendica Notification');
$product = FRIENDICA_PLATFORM;
Worker::add(PRIORITY_LOW, "Directory", $url);
}
- $l10n = L10n::withLang($register['language']);
+ $l10n = DI::l10n()->withLang($register['language']);
$res = User::sendRegisterOpenEmail(
$l10n,
$sent[] = $admin['email'];
$lang = (($admin['language'])?$admin['language']:'en');
- $l10n = L10n::withLang($lang);
+ $l10n = DI::l10n()->withLang($lang);
$preamble = Strings::deindent($l10n->t("
The friendica developers released update %s recently,
$sent[] = $admin['email'];
$lang = (($admin['language']) ? $admin['language'] : 'en');
- $l10n = L10n::withLang($lang);
+ $l10n = DI::l10n()->withLang($lang);
$preamble = Strings::deindent($l10n->t("
The friendica database was successfully updated from %s to %s.",
// 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']),
+ DI::l10n()->withLang($arr['language']),
$user,
Config::get('config', 'sitename'),
$base_url,