From d38fdf1c07c5468b5b8997ad4372f3d5524c4eeb Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 26 Jul 2016 08:57:50 +1200 Subject: [PATCH] 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 --- Koha/Plugins.pm | 1 + Koha/Plugins/Handler.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm index bca7701..a188d7c 100644 --- a/Koha/Plugins.pm +++ b/Koha/Plugins.pm @@ -27,6 +27,7 @@ use C4::Output; BEGIN { push @INC, C4::Context->config("pluginsdir"); + pop @INC if $INC[-1] eq '.'; } =head1 NAME diff --git a/Koha/Plugins/Handler.pm b/Koha/Plugins/Handler.pm index 903b446..0c0a7b4 100644 --- a/Koha/Plugins/Handler.pm +++ b/Koha/Plugins/Handler.pm @@ -27,6 +27,7 @@ use C4::Context; BEGIN { push @INC, C4::Context->config("pluginsdir"); + pop @INC if $INC[-1] eq '.' ; } =head1 NAME -- 2.8.1