[Koha-bugs] [Bug 20116] Cache language list

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Apr 27 00:14:02 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20116

--- Comment #26 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Marcel de Rooy from comment #25)
> +    my @enabled_languages =
> +      ( $interface && $interface eq 'intranet' )
> +      ? split ",", C4::Context->preference('language')
> +      : split ",", C4::Context->preference('opaclanguage');
> 
> Seems to reverse the previous logic. If eq opac then opac else intranet.

I do not think I get that one, please read again the whole diff:

before:
if $interface == opac:
  use opaclanguages
elsif $interface == intranet:
  use language
else:
  use opaclanguages

after:
if $interface == intranet:
  use language
else:
  use opaclanguages

Looks equal for me.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list