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

(-)a/C4/Languages.pm (-2 / +5 lines)
Lines 578-584 sub getlanguage { Link Here
578
    my $preference_to_check =
578
    my $preference_to_check =
579
      $interface eq 'intranet' ? 'language' : 'opaclanguages';
579
      $interface eq 'intranet' ? 'language' : 'opaclanguages';
580
    # Get the available/valid languages list
580
    # Get the available/valid languages list
581
    my @languages = split /,/, C4::Context->preference($preference_to_check);
581
    my @languages;
582
    my $preference_value = C4::Context->preference($preference_to_check);
583
    if ($preference_value) {
584
        @languages = split /,/, $preference_value;
585
    }
582
586
583
    # Chose language from the URL
587
    # Chose language from the URL
584
    $language = $cgi->param( 'language' );
588
    $language = $cgi->param( 'language' );
585
- 

Return to bug 15719