From 4838615d084be7875c05a66fab4b6662bf314588 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 18 Jan 2021 12:41:31 +0000 Subject: [PATCH] Bug 22544: Add default language value to KohaNews template plugin Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- Koha/Template/Plugin/KohaNews.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/KohaNews.pm b/Koha/Template/Plugin/KohaNews.pm index fce9d678fc..c6c75b4c6a 100644 --- a/Koha/Template/Plugin/KohaNews.pm +++ b/Koha/Template/Plugin/KohaNews.pm @@ -33,7 +33,7 @@ sub get { my $display_location = $params->{location}; my $blocktitle = $params->{blocktitle}; - my $lang = $params->{lang}; + my $lang = $params->{lang} || 'en'; my $library = $params->{library}; my $content = Koha::News->search_for_display({ -- 2.39.5