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:
parent
e086eda769
commit
84296b95ba
2 changed files with 2 additions and 2 deletions
|
@ -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'");
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue