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 Koha::Logger; -use Koha::Script -cron; +use Try::Tiny; + +use C4::Context; use C4::Log; +use Koha::Logger; +use Koha::Plugins; +use Koha::Script -cron; cronlogaction();