Bug 7736 amend edi_cron.pl to use new style call to Context
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 18 Mar 2016 11:31:41 +0000 (11:31 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 1 Apr 2016 20:03:19 +0000 (20:03 +0000)
Bug 9006 changed the api for retrieving config values
from C4::Context after the removal of Autoload
This changes the syntax used to retrieve logdir to reflect
the correct syntax

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
misc/cronjobs/edi_cron.pl

index 8ba9a14..e22ab42 100755 (executable)
@@ -36,7 +36,7 @@ use Koha::EDI qw( process_quote process_invoice process_ordrsp);
 use Koha::Edifact::Transport;
 use Fcntl qw( :DEFAULT :flock :seek );
 
-my $logdir = C4::Context->logdir;
+my $logdir = C4::Context->context('logdir');
 
 # logging set to trace as this may be what you
 # want on implementation