So add in Apache2::Const::OK returns on all of them.
[LFW: Added the same change to AutoSuggest.pm for consistency's sake.]
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
my $sclient = OpenSRF::Utils::SettingsClient->new();
my $ac_data = $sclient->config_value("added_content");
- return unless $ac_data;
+ return Apache2::Const::OK unless $ac_data;
my $ac_handler = $ac_data->{module};
- return unless $ac_handler;
+ return Apache2::Const::OK unless $ac_handler;
$net_timeout = $ac_data->{timeout} || 1;
$error_countdown = $max_errors = $ac_data->{max_errors} || 10;
if($@) {
$logger->error("Unable to load Added Content handler [$ac_handler]: $@");
- return;
+ return Apache2::Const::OK;
}
$handler = $ac_handler->new($ac_data);
$logger->debug("added content loaded handler: $handler");
+ return Apache2::Const::OK;
}
sub child_init {
$cache = OpenSRF::Utils::Cache->new('global');
$init_done = 1;
+ return Apache2::Const::OK;
}
# BEGIN package globals
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
+ return Apache2::Const::OK;
}
sub handler {
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
+ return Apache2::Const::OK;
}
sub handler {
};
$idl_doc = XML::LibXML->load_xml(location => $idl_file);
+ return Apache2::Const::OK;
}
$actor = OpenSRF::AppSession->create('open-ils.actor');
load_i18n();
$init_done = 1;
+ return Apache2::Const::OK;
}
sub password_reset {
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
+ return Apache2::Const::OK;
}
sub handler {
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
+ return Apache2::Const::OK;
}
sub handler {
#$parser->expand_xinclude(1);
#$base_xml_doc = $parser->parse_file($base_xml);
-
+ return Apache2::Const::OK;
}
sub handler {
}
}
}
+ return Apache2::Const::OK;
}
sub check_child_init() {
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL"));
+ return Apache2::Const::OK;
}
sub handler {
sub child_init {
OpenSRF::System->bootstrap_client( config_file => $bootstrap );
+ return Apache2::Const::OK;
}
sub spool_marc {
OpenILS::Utils::Fieldmapper->require;
Fieldmapper->import(IDL => $idl);
OpenSRF::AppSession->ingress('apache');
+ return Apache2::Const::OK;
}