From 2c7335a507b92d7699f70012c5583cbed4a34ad1 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 6 Apr 2017 10:05:38 +0200 Subject: [PATCH] Bug 15395: Exclude xslt from the list of themes when building locale_data.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc VĂ©ron --- misc/translator/LangInstaller.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 44fe1e4e1e..1d21bcbdc8 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -688,7 +688,7 @@ sub install_messages { my $opachtdocs = $self->{context}->config('opachtdocs'); opendir(my $dh, $opachtdocs); - for my $theme ( grep { not /^\.|lib/ } readdir($dh) ) { + for my $theme ( grep { not /^\.|lib|xslt/ } readdir($dh) ) { mkdir "$opachtdocs/$theme/$self->{lang}/js"; open my $fh, '>', "$opachtdocs/$theme/$self->{lang}/js/locale_data.js"; print $fh $js_locale_data; -- 2.14.2