From b5b147df0a44d3423f5c48ed047eca78bcbeba25 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Oct 2021 10:36:51 +0200 Subject: [PATCH] Bug 24223: Get languages for OPAC There were 2 warnings Use of uninitialized value $interface in concatenation (.) or string at /kohadevbox/koha/C4/Languages.pm line 121. Use of uninitialized value $theme in concatenation (.) or string at /kohadevbox/koha/C4/Languages.pm line 121. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- .../data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.pl b/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.pl index edbc55d8a5..e0673876d5 100755 --- a/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.pl +++ b/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.pl @@ -10,7 +10,7 @@ return { # get list of installed translations require C4::Languages; my @langs; - my $tlangs = C4::Languages::getTranslatedLanguages(); + my $tlangs = C4::Languages::getTranslatedLanguages('opac','bootstrap'); foreach my $language ( @$tlangs ) { foreach my $sublanguage ( @{$language->{'sublanguages_loop'}} ) { -- 2.39.5