Bugzilla – Attachment 126830 Details for
Bug 29246
We should rename the prefs 'template' and opacthemes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29246: Fix two incorrect calls of getTranslatedLanguages
Bug-29246-Fix-two-incorrect-calls-of-getTranslated.patch (text/plain), 1.73 KB, created by
Marcel de Rooy
on 2021-10-25 13:13:41 UTC
(
hide
)
Description:
Bug 29246: Fix two incorrect calls of getTranslatedLanguages
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-25 13:13:41 UTC
Size:
1.73 KB
patch
obsolete
>From 83443e26bf2036634fae9c0fc26baa1a3a491739 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29246
:
126828
|
126829
| 126830 |
126831
|
126832