diff --git a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl index 86888b8dcc..9c6df3cc0d 100644 --- a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl +++ b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl @@ -2,9 +2,9 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { # get list of installed translations - use C4::Languages qw(getTranslatedLanguages); + require C4::Languages; my @langs; - my $tlangs = getTranslatedLanguages(); + my $tlangs = C4::Languages::getTranslatedLanguages(); foreach my $language ( @$tlangs ) { foreach my $sublanguage ( @{$language->{'sublanguages_loop'}} ) {