]> git.mxchange.org Git - friendica.git/commitdiff
Add missing variable argument operator in BaseModule->t
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 24 Nov 2021 15:57:05 +0000 (10:57 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 24 Nov 2021 15:57:05 +0000 (10:57 -0500)
- This was causing to wrongly pass the variable arguments as an array of variable arguments to L10n->t

src/BaseModule.php

index be4788045c2d283d73c5c30080c1ebf661ee7710..48677e64fc6b41ec52c154ee504261d4ca3371ae 100644 (file)
@@ -56,7 +56,7 @@ abstract class BaseModule implements ICanHandleRequests
         */
        protected function t(string $s, ...$args): string
        {
-               return $this->l10n->t($s, $args);
+               return $this->l10n->t($s, ...$args);
        }
 
        /**