[Koha-bugs] [Bug 24661] Inclusion of locale-related javascript files is broken

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 25 14:58:10 CET 2020


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

--- Comment #16 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Julian Maurice from comment #15)
> (In reply to Jonathan Druart from comment #14)
> > Or even
> > 
> > [% IF lang.defined AND lang != 'en' %]
> 
> I never used the .defined VMethod of Template::Toolkit, but it should be ok.
> I'm not sure it is even needed. I think you can simply write
> 
> [% IF lang && lang != 'en' %]
> 
> Since no language code can evaluate to false

Looks good to me, nice and terse.

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


More information about the Koha-bugs mailing list