From 1e09eab921c2ceb000ea0380eda1a0be7564a2da Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 30 Nov 2020 19:52:57 +0000 Subject: [PATCH] Another place found where "show less" had been "show more" --- src/Content/Widget.php | 1 + view/templates/widget/posted_date.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Content/Widget.php b/src/Content/Widget.php index e18f70631d..98bd78eceb 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -516,6 +516,7 @@ class Widget '$cutoff' => $cutoff, '$url' => $url, '$dates' => $ret, + '$showless' => DI::l10n()->t('show less'), '$showmore' => DI::l10n()->t('show more') ]); diff --git a/view/templates/widget/posted_date.tpl b/view/templates/widget/posted_date.tpl index 0d5490d98f..ad40bcb022 100644 --- a/view/templates/widget/posted_date.tpl +++ b/view/templates/widget/posted_date.tpl @@ -2,11 +2,11 @@ function showHideDates() { if( $('#posted-date-selector-drop').is(':visible')) { $('#posted-date-selector-drop').hide(); - $('#posted-date-collapse').html(window.showMore); + $('#posted-date-collapse').html('{{$showmore}}'); } else { $('#posted-date-selector-drop').show(); - $('#posted-date-collapse').html(window.showFewer); + $('#posted-date-collapse').html('{{$showless}}'); } }