From 7e720e7e820408e7e2b7b03f65cbdd1435a2d031 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 13 May 2020 16:52:47 +0100 Subject: [PATCH] Bug 23794: (RM follow-up) Remove warnings from updatedatabase Signed-off-by: Martin Renvoize --- installer/data/mysql/updatedatabase.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c61e665cff..0397716324 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20909,7 +20909,7 @@ if( CheckVersion( $DBversion ) ) { # 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'}} ) { @@ -20927,7 +20927,7 @@ if( CheckVersion( $DBversion ) ) { foreach my $lang ( @langs ) { # If there is a value in the opacheader preference, insert it into opac_news $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$lang", $opacheader); - push @detail, "Inserted opacheader contents into $lang news item...\n"; + push @detail, "Inserted opacheader contents into $lang news item..."; } } # Remove the opacheader system preference @@ -21928,7 +21928,7 @@ if( CheckVersion( $DBversion ) ) { # 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