]> git.mxchange.org Git - friendica.git/commitdiff
Move L10n::withLang() calls to DI::l10n()->withLang() calls
authornupplaPhil <admin@philipp.info>
Sat, 18 Jan 2020 19:54:15 +0000 (20:54 +0100)
committernupplaPhil <admin@philipp.info>
Sun, 19 Jan 2020 15:31:18 +0000 (16:31 +0100)
include/enotify.php
mod/regmod.php
src/Core/Update.php
src/Module/Register.php

index 3785caab1673d5c5fe8d324f6689567bde5115a0..ecdd16de1f9888a6ebf698b92a6d201a32c0378e 100644 (file)
@@ -57,7 +57,7 @@ function notification($params)
        $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;
index 4cdd0384587d933739ddfd310909a7581daccba7..4897df67b862c309d1fc154abe3a77d3cf23758d 100644 (file)
@@ -36,7 +36,7 @@ function user_allow($hash)
                Worker::add(PRIORITY_LOW, "Directory", $url);
        }
 
-       $l10n = L10n::withLang($register['language']);
+       $l10n = DI::l10n()->withLang($register['language']);
 
        $res = User::sendRegisterOpenEmail(
                $l10n,
index 24ca0a797a38010fa2c1a8ef54063e3afae193f0..b416f207af728b233da74cb61ebaeb1e52d375ea 100644 (file)
@@ -253,7 +253,7 @@ class Update
                        $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,
@@ -295,7 +295,7 @@ class Update
                                $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.",
index dfe0a534f33b963244de106bf328096318ab85eb..e4343d0f8b6e0c260b6c104d19c4e0561dd66463 100644 (file)
@@ -297,7 +297,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']),
+                                       DI::l10n()->withLang($arr['language']),
                                        $user,
                                        Config::get('config', 'sitename'),
                                        $base_url,