Bug 24734: Fix paths in LangInstaller.pm for JS files
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 26 Feb 2020 19:09:52 +0000 (20:09 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 2 Mar 2020 09:49:56 +0000 (09:49 +0000)
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 <bgkriegel@gmail.com>
Tested for dev/single/standard installs, no errors,
just a (normal) warn from po2json.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

misc/translator/LangInstaller.pm

index 13367b5..c8647cc 100644 (file)
@@ -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;