diff --git a/Koha/Illrequest/Workflow/Availability.pm b/Koha/Illrequest/Workflow/Availability.pm index 4fd75a48a9..bcc50f6fe7 100644 --- a/Koha/Illrequest/Workflow/Availability.pm +++ b/Koha/Illrequest/Workflow/Availability.pm @@ -64,6 +64,8 @@ sub get_services { $plugin_filter->{metadata} = $params->{metadata}; } + return [] unless C4::Context->config("enable_plugins"); + my @candidates = Koha::Plugins->new()->GetPlugins($plugin_filter); my @services = (); foreach my $plugin (@candidates) { diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 9912bc7f16..2a1ed67848 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -531,6 +531,7 @@ sub can_batch { # Get available metadata enrichment plugins sub get_metadata_enrichment { + return [] unless C4::Context->config("enable_plugins"); my @candidates = Koha::Plugins->new()->GetPlugins({ method => 'provides_api' });