From ba909bc7fc8d37e9b3fcbf21a7abef096688dc4b Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 1 Mar 2021 11:40:56 +0100 Subject: [PATCH] Bug 27820: add all missing use in misc/cronjobs/plugins_nightly.pl Koha::Plugins and C4::Context where missing. Try::Tiny was missing for try/catch. Test plan : 1) Use a plugin using hook 'cronjob_nightly' 2) Run script : misc/cronjobs/plugins_nightly.pl Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- misc/cronjobs/plugins_nightly.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/plugins_nightly.pl b/misc/cronjobs/plugins_nightly.pl index 8a45ddd702..f748637e1e 100755 --- a/misc/cronjobs/plugins_nightly.pl +++ b/misc/cronjobs/plugins_nightly.pl @@ -2,9 +2,13 @@ use Modern::Perl; +use Try::Tiny; + +use C4::Context; +use C4::Log; use Koha::Logger; +use Koha::Plugins; use Koha::Script -cron; -use C4::Log; cronlogaction(); -- 2.20.1