]> git.koha-community.org Git - koha.git/commit
Bug 32539: Add exception handling to plugin hooks in template plugin
authorDavid Cook <dcook@prosentient.com.au>
Mon, 16 Jan 2023 04:41:01 +0000 (04:41 +0000)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Mon, 13 Feb 2023 09:20:24 +0000 (09:20 +0000)
commit0623ba78e5ea1510de2314ea80bd846adb75259b
tree1067274be04a745fa7345428ad803c929ab8bf43
parentdd2fedd2a1d06003091b052b220422fe8a5def7d
Bug 32539: Add exception handling to plugin hooks in template plugin

This change wraps Koha plugin hook calls with exception handling
within the template plugin for Koha plugins.

Test plan:
0) Apply patch
1) Install a plugin that provides "opac_head", "opac_js",
"intranet_head", and "intranet_js" with Perl errors in them
2) Load an OPAC page
3) Note that the OPAC page loads correctly
4) Load a staff interace page
5) Note that the staff interface page loads correctly

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 23a002112273d2b406af7edd6b85acce0d5d699c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
Koha/Template/Plugin/KohaPlugins.pm