Bugzilla – Attachment 99586 Details for
Bug 24661
Inclusion of locale-related javascript files is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24661: (RM follow-up) Check lang is defined
Bug-24661-RM-follow-up-Check-lang-is-defined.patch (text/plain), 1.09 KB, created by
Martin Renvoize (ashimema)
on 2020-02-25 14:29:57 UTC
(
hide
)
Description:
Bug 24661: (RM follow-up) Check lang is defined
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-02-25 14:29:57 UTC
Size:
1.09 KB
patch
obsolete
>From b2651484ed73fbfb178c82ef31f5bd89740e1589 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <martin.renvoize@ptfs-europe.com> >--- > 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 = {}; > </script> > >-[% IF lang != 'en' %] >+[% IF lang && lang != 'en' %] > [% Asset.js(lang _ '/js/locale_data.js') | $raw %] > [% END %] > [% Asset.js('js/Gettext.js') | $raw %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24661
:
98913
|
98930
| 99586