From f069fdabc147c2dae2ab1ffcc11b2fb99bef0b1c Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 26 Jul 2016 08:57:50 +1200 Subject: [PATCH] [PASSED QA] 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 Signed-off-by: Katrin Fischer --- 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 -- 1.9.1