From bdbb799277622ffeb80b09f22adb584abb8ed9e5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 18 Aug 2022 04:07:36 +0000 Subject: [PATCH] Bug 31380: Add plugin hook for choosing Mojolicious or CGI script controller This change checks for a "use_mojolicious" method in the plugin in order to determine whether it should use a Mojolicious controller or a CGI script controller. Note that the check is for the existence of the method, so it is backwards compatible with all existing Koha Plugins. --- .../intranet-tmpl/prog/en/modules/plugins/plugins-home.tt | 7 ++++--- .../intranet-tmpl/prog/en/modules/tools/tools-home.tt | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index c43c5fb2ee..ba877072fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -177,21 +177,22 @@ Actions