Bug 16975 : @INC should not have '.' as its last entry

To Test
1/ Try using a plugin
2/ Apply patch
3/ Test plugin still works

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Chris Cormack 2016-07-26 08:57:50 +12:00 committed by Brendan Gallagher
parent 9bdea2e369
commit 28eae42d2d
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ use C4::Output;
BEGIN {
push @INC, C4::Context->config("pluginsdir");
pop @INC if $INC[-1] eq '.';
}
=head1 NAME

View File

@ -27,6 +27,7 @@ use C4::Context;
BEGIN {
push @INC, C4::Context->config("pluginsdir");
pop @INC if $INC[-1] eq '.' ;
}
=head1 NAME