6 use Koha::Script -cron;
11 my $logger = Koha::Logger->get();
12 if ( C4::Context->config("enable_plugins") ) {
13 my @plugins = Koha::Plugins->new->GetPlugins(
15 method => 'cronjob_nightly',
19 foreach my $plugin (@plugins) {
21 $plugin->cronjob_nightly();
32 plugins_nightly.pl - Run nightly tasks specified by plugins
40 Martin Renvoize <martin.renvoize@ptfs-europe.com>
44 This file is part of Koha.
46 Koha is free software; you can redistribute it and/or modify it
47 under the terms of the GNU General Public License as published by
48 the Free Software Foundation; either version 3 of the License, or
49 (at your option) any later version.
51 Koha is distributed in the hope that it will be useful, but
52 WITHOUT ANY WARRANTY; without even the implied warranty of
53 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 GNU General Public License for more details.
56 You should have received a copy of the GNU General Public License
57 along with Koha; if not, see <http://www.gnu.org/licenses>.