From 0a7cea8d45e923278447de2d983cbf2bc738c4cf Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 14 Dec 2009 20:50:54 +0000 Subject: [PATCH] removed oils_header.pl dependency from action_trigger_runner git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15160 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/support-scripts/action_trigger_runner.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/support-scripts/action_trigger_runner.pl b/Open-ILS/src/support-scripts/action_trigger_runner.pl index 3b5ac6219b..5ba949234f 100755 --- a/Open-ILS/src/support-scripts/action_trigger_runner.pl +++ b/Open-ILS/src/support-scripts/action_trigger_runner.pl @@ -16,10 +16,11 @@ use strict; use warnings; use Getopt::Long; +use OpenSRF::System; use OpenSRF::AppSession; use OpenSRF::Utils::JSON; use OpenSRF::EX qw(:try); -require 'oils_header.pl'; +use OpenILS::Utils::Fieldmapper; my $opt_lockfile = '/tmp/action-trigger-LOCK'; my $opt_osrf_config = '/openils/conf/opensrf_core.xml'; @@ -153,7 +154,8 @@ print F $$; close F; try { - osrf_connect($opt_osrf_config); + OpenSRF::System->bootstrap_client(config_file => $opt_osrf_config); + Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL")); process_hooks(); run_pending(); } otherwise { -- 2.11.0