From b2651484ed73fbfb178c82ef31f5bd89740e1589 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 25 Feb 2020 14:26:57 +0000 Subject: [PATCH] Bug 24661: (RM follow-up) Check lang is defined This adds a check that the lang variable is defined before testing against it. In normal operation this is likely a no-op, but it is required for compiling templates during QA. Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 1ad6197288..c2833e3009 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -26,7 +26,7 @@ var Koha = {}; -[% IF lang != 'en' %] +[% IF lang && lang != 'en' %] [% Asset.js(lang _ '/js/locale_data.js') | $raw %] [% END %] [% Asset.js('js/Gettext.js') | $raw %] -- 2.39.5