Bug 24230: fix intranet_js plugin hook before body end tag
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 13 Dec 2019 06:01:23 +0000 (07:01 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Dec 2019 15:28:33 +0000 (15:28 +0000)
The plugin hook intranet_js is after body tag in intranet-bottom.inc :
    </body>
[% KohaPlugins.get_plugins_intranet_js | $raw %]
</html>

It must be before like in opac-bottom.inc

Test plan :
1) Install a Koha plugin with intranet_js hook, like KitechenSink
2) Go to an intranet page
3) Look at source of the page to see plugin code is before body end tag

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc

index 89a4870..e0bce02 100644 (file)
@@ -72,6 +72,6 @@
         [% INCLUDE js_includes.inc %]
         [% jsinclude | $raw # Parse the page template's JavaScript block if necessary %]
     [% END %]
-    </body>
 [% KohaPlugins.get_plugins_intranet_js | $raw %]
+</body>
 </html>