From b8c93bbaa35c57a7402c80caf226a2e3c15fcad7 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 --- .../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 edbc55d8a52..e0673876d58 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.25.1