From cab8dd8cf116fcc23b487c493d7bac147c82b9fe Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 26 Feb 2020 20:09:52 +0100 Subject: [PATCH] Bug 24734: Fix paths in LangInstaller.pm for JS files Use intrahtdocs and opachtdocs in order to get the correct paths for all kind of installations Test plan: 1. With a dev install, run ./translator create/update/install xx-XX and verify that there is no error message 2. With a standard install, run ./translator create/update/install xx-XX and verify that there is no error message Signed-off-by: Bernardo Gonzalez Kriegel Tested for dev/single/standard installs, no errors, just a (normal) warn from po2json. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- misc/translator/LangInstaller.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 13367b5c54..c8647ccf20 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -701,8 +701,8 @@ sub extract_messages { } my @js_dirs = ( - "$intranetdir/koha-tmpl/intranet-tmpl/prog/js", - "$intranetdir/koha-tmpl/opac-tmpl/bootstrap/js", + "$intrahtdocs/prog/js", + "$opachtdocs/bootstrap/js", ); my @js_files; -- 2.39.5