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