From 88f0835fae2406044523ef09f02a5c3b594d5e48 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 18 Jan 2020 20:53:00 +0100 Subject: [PATCH] Move L10n::tt() calls to DI::l10n()->tt() calls --- widgets/widget_like.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/widget_like.php b/widgets/widget_like.php index 1fcc96b99..b9bf3df56 100644 --- a/widgets/widget_like.php +++ b/widgets/widget_like.php @@ -58,10 +58,10 @@ function like_widget_content(&$a, $conf){ $t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/"); $o .= Renderer::replaceMacros($t, [ '$like' => $likes, - '$strlike' => L10n::tt("%d person likes this", "%d people like this", $likes), + '$strlike' => DI::l10n()->tt("%d person likes this", "%d people like this", $likes), '$dislike' => $dislikes, - '$strdislike'=> L10n::tt("%d person doesn't like this", "%d people don't like this", $dislikes), + '$strdislike'=> DI::l10n()->tt("%d person doesn't like this", "%d people don't like this", $dislikes), ]); return $o;