From 83443e26bf2036634fae9c0fc26baa1a3a491739 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 25 Oct 2021 12:53:50 +0000 Subject: [PATCH] Bug 29246: Fix two incorrect calls of getTranslatedLanguages Content-Type: text/plain; charset=utf-8 memberentry and letter.pl refer to OPAC with the wrong theme. --- members/memberentry.pl | 2 +- tools/letter.pl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index d537d683c3..18eb985a9f 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -866,7 +866,7 @@ if ( defined $min ) { } if ( C4::Context->preference('TranslateNotices') ) { - my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('intranet_theme') ); + my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('opacthemes') ); $template->param( languages => $translated_languages ); } diff --git a/tools/letter.pl b/tools/letter.pl index 58dca0e3ac..5425fdb4e7 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -159,9 +159,7 @@ sub add_form { my %letters = ( default => { templates => $templates } ); if ( C4::Context->preference('TranslateNotices') ) { - my $translated_languages = - C4::Languages::getTranslatedLanguages( 'opac', - C4::Context->preference('intranet_theme') ); + my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('opacthemes') ); for my $language (@$translated_languages) { for my $sublanguage( @{ $language->{sublanguages_loop} } ) { if ( $language->{plural} ) { -- 2.20.1