From 3cd1ac19db164a99e95b590d641fb2405d0c54dc 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 Signed-off-by: Jonathan Druart (cherry picked from commit 5a2dfc5ea36d45d7af9c0e4102f92a601e192b46) Signed-off-by: Fridolin Somers --- 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.39.5