Revert "Bug 26434: Fix plugin dirs addition to @INC"
Due to new perl dep that is not yet available for 19.05.x
So backport defered to next release.
This reverts commit 6efd0a5704.
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
a5b8547f15
commit
a820ff385d
|
|
@ -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 '.';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 '.' ;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue