diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm index 000555dbfd..be6bf3304d 100644 --- a/Koha/Plugins.pm +++ b/Koha/Plugins.pm @@ -19,7 +19,6 @@ package Koha::Plugins; use Modern::Perl; -use Array::Utils qw(array_minus); use Module::Load::Conditional qw(can_load); use Module::Pluggable search_path => ['Koha::Plugin'], except => qr/::Edifact(|::Line|::Message|::Order|::Segment|::Transport)$/; use List::MoreUtils qw( any ); @@ -30,7 +29,7 @@ use C4::Output; BEGIN { my $pluginsdir = C4::Context->config("pluginsdir"); my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir; - push @INC, array_minus(@pluginsdir, @INC) ; + push( @INC, @pluginsdir ); pop @INC if $INC[-1] eq '.'; } diff --git a/Koha/Plugins/Handler.pm b/Koha/Plugins/Handler.pm index 32649e5fac..5b6e3e3787 100644 --- a/Koha/Plugins/Handler.pm +++ b/Koha/Plugins/Handler.pm @@ -19,7 +19,6 @@ package Koha::Plugins::Handler; use Modern::Perl; -use Array::Utils qw(array_minus); use File::Path qw(remove_tree); use Module::Load::Conditional qw(can_load); @@ -29,7 +28,7 @@ use C4::Context; BEGIN { my $pluginsdir = C4::Context->config("pluginsdir"); my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir; - push @INC, array_minus(@pluginsdir, @INC) ; + push( @INC, @pluginsdir ); pop @INC if $INC[-1] eq '.' ; }