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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-10-13 10:36:51 +02:00
parent 1d0a023b6f
commit b5b147df0a
1 changed files with 1 additions and 1 deletions

View File

@ -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'}} ) {