Bug 27490: More instances of changing language syspref to StaffInterfaceLanguages

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nicolas Hunstein <nicolas.hunstein@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Aleisha Amohia 2024-07-29 02:26:11 +00:00 committed by Katrin Fischer
parent e086eda769
commit 84296b95ba
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View file

@ -493,7 +493,7 @@ sub set_languages_syspref {
warn "UPDATE Languages"; warn "UPDATE Languages";
# intranet # 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"); $pref->execute("en,$language");
# opac # opac
$pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='OPACLanguages'"); $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='OPACLanguages'");

View file

@ -639,7 +639,7 @@ sub getlanguage {
my $language; my $language;
my $preference_to_check = my $preference_to_check =
$interface eq 'intranet' ? 'language' : 'OPACLanguages'; $interface eq 'intranet' ? 'StaffInterfaceLanguages' : 'OPACLanguages';
# Get the available/valid languages list # Get the available/valid languages list
my @languages; my @languages;
my $preference_value = C4::Context->preference($preference_to_check); my $preference_value = C4::Context->preference($preference_to_check);