]> git.mxchange.org Git - friendica.git/blobdiff - src/Moderation/DomainPatternBlocklist.php
Minor l10n issue
[friendica.git] / src / Moderation / DomainPatternBlocklist.php
index 7b6cf997aab1df9196df7fddcdfa641416761365..923fca88f03740f24c7bb35664b4406031a781c7 100644 (file)
@@ -130,7 +130,6 @@ class DomainPatternBlocklist
         *
         * @return void
         * @throws Exception
-        * @todo maybe throw more explicit exception
         */
        public function exportToFile(string $filename)
        {
@@ -148,6 +147,7 @@ class DomainPatternBlocklist
         * Appends to the local block list all the patterns from the provided list that weren't already present.
         *
         * @param array $blocklist
+        *
         * @return int The number of patterns actually added to the block list
         */
        public function append(array $blocklist): int
@@ -222,11 +222,11 @@ class DomainPatternBlocklist
                }
 
                foreach ($recipients as $recipient) {
-                       $this->l10n->withLang($recipient['language']);
+                       $l10n  = $this->l10n->withLang($recipient['language']);
                        $email = $this->emailer->newSystemMail()
                                ->withMessage(
-                                       $this->l10n->t('[%s] Notice of remote server domain pattern block list update', $this->emailer->getSiteEmailName()),
-                                       $this->l10n->t(
+                                       $l10n->t('[%s] Notice of remote server domain pattern block list update', $this->emailer->getSiteEmailName()),
+                                       $l10n->t(
                                                'Dear %s,
 
 You are receiving this email because the Friendica node at %s where you are registered as a user updated their remote server domain pattern block list.