View | Details | Raw Unified | Return to bug 27490
Collapse All | Expand All

(-)a/C4/Installer.pm (-1 / +1 lines)
Lines 493-499 sub set_languages_syspref { Link Here
493
493
494
    warn "UPDATE Languages";
494
    warn "UPDATE Languages";
495
    # intranet
495
    # intranet
496
    my $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='language'");
496
    my $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='StaffInterfaceLanguages'");
497
    $pref->execute("en,$language");
497
    $pref->execute("en,$language");
498
    # opac
498
    # opac
499
    $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='OPACLanguages'");
499
    $pref = $self->{'dbh'}->prepare("UPDATE systempreferences SET value=? WHERE variable='OPACLanguages'");
(-)a/C4/Languages.pm (-2 / +1 lines)
Lines 639-645 sub getlanguage { Link Here
639
    my $language;
639
    my $language;
640
640
641
    my $preference_to_check =
641
    my $preference_to_check =
642
      $interface eq 'intranet' ? 'language' : 'OPACLanguages';
642
      $interface eq 'intranet' ? 'StaffInterfaceLanguages' : 'OPACLanguages';
643
    # Get the available/valid languages list
643
    # Get the available/valid languages list
644
    my @languages;
644
    my @languages;
645
    my $preference_value = C4::Context->preference($preference_to_check);
645
    my $preference_value = C4::Context->preference($preference_to_check);
646
- 

Return to bug 27490