Bugzilla – Attachment 169805 Details for
Bug 27490
Rename system preference language to StaffInterfaceLanguages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27490: More instances of changing language syspref to StaffInterfaceLanguages
Bug-27490-More-instances-of-changing-language-sysp.patch (text/plain), 1.45 KB, created by
Aleisha Amohia
on 2024-07-29 02:26:45 UTC
(
hide
)
Description:
Bug 27490: More instances of changing language syspref to StaffInterfaceLanguages
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2024-07-29 02:26:45 UTC
Size:
1.45 KB
patch
obsolete
>From 6fd25d476eefd69ceb849cd0468277d21d44b0e4 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 29 Jul 2024 02:26:11 +0000 >Subject: [PATCH] Bug 27490: More instances of changing language syspref to > StaffInterfaceLanguages > >--- > C4/Installer.pm | 2 +- > C4/Languages.pm | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 7e248a17aa3..22faffb1296 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -492,7 +492,7 @@ sub set_languages_syspref { > > warn "UPDATE Languages"; > # intranet >- my $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='language'"); >+ my $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='StaffInterfaceLanguages'"); > $pref->execute("en,$language"); > # opac > $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='OPACLanguages'"); >diff --git a/C4/Languages.pm b/C4/Languages.pm >index ac176313205..a9f8295cf18 100644 >--- a/C4/Languages.pm >+++ b/C4/Languages.pm >@@ -639,7 +639,7 @@ sub getlanguage { > my $language; > > my $preference_to_check = >- $interface eq 'intranet' ? 'language' : 'OPACLanguages'; >+ $interface eq 'intranet' ? 'StaffInterfaceLanguages' : 'OPACLanguages'; > # Get the available/valid languages list > my @languages; > my $preference_value = C4::Context->preference($preference_to_check); >-- >2.39.2
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 27490
:
169631
|
169805
|
169914
|
169915
|
170965
|
170966
|
170967