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 <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Fridolin Somers 2021-03-01 11:40:56 +01:00 committed by Jonathan Druart
parent 3267648ded
commit 5a2dfc5ea3
1 changed files with 6 additions and 2 deletions

View File

@ -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();