From d0a016970cbceddba2ec627d7b5a9be54cb227a4 Mon Sep 17 00:00:00 2001
From: Josef Moravec <josef.moravec@gmail.com>
Date: Mon, 18 Jan 2021 12:41:31 +0000
Subject: [PATCH] Bug 22544: Add default language value to KohaNews template
 plugin
Content-Type: text/plain; charset=utf-8

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 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.20.1