Lines 2-10
Link Here
|
2 |
|
2 |
|
3 |
use Modern::Perl; |
3 |
use Modern::Perl; |
4 |
|
4 |
|
|
|
5 |
use Koha::Logger; |
5 |
use Koha::Script -cron; |
6 |
use Koha::Script -cron; |
|
|
7 |
|
6 |
cronlogaction(); |
8 |
cronlogaction(); |
7 |
|
9 |
|
|
|
10 |
my $logger = Koha::Logger->get(); |
8 |
if ( C4::Context->config("enable_plugins") ) { |
11 |
if ( C4::Context->config("enable_plugins") ) { |
9 |
my @plugins = Koha::Plugins->new->GetPlugins( |
12 |
my @plugins = Koha::Plugins->new->GetPlugins( |
10 |
{ |
13 |
{ |
Lines 17-23
if ( C4::Context->config("enable_plugins") ) {
Link Here
|
17 |
$plugin->cronjob_nightly(); |
20 |
$plugin->cronjob_nightly(); |
18 |
} |
21 |
} |
19 |
catch { |
22 |
catch { |
20 |
warn "$_"; |
23 |
$logger->warn("$_"); |
21 |
}; |
24 |
}; |
22 |
} |
25 |
} |
23 |
} |
26 |
} |
24 |
- |
|
|