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>
(cherry picked from commit 5a2dfc5ea3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
6ce4a561b1
commit
3cd1ac19db
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue