@@ -, +, @@ in koha-conf.xml git clone https://github.com/bywatersolutions/koha-plugin-kitchen-sink.git /path/to/new/plugins/dir --- Koha/Plugins.pm | 4 +++- Koha/Plugins/Handler.pm | 4 +++- plugins/plugins-upload.pl | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) --- a/Koha/Plugins.pm +++ a/Koha/Plugins.pm @@ -26,7 +26,9 @@ use C4::Context; use C4::Output; BEGIN { - push @INC, C4::Context->config("pluginsdir"); + my $pluginsdir = C4::Context->config("pluginsdir"); + my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir; + push( @INC, @pluginsdir ); } =head1 NAME --- a/Koha/Plugins/Handler.pm +++ a/Koha/Plugins/Handler.pm @@ -26,7 +26,9 @@ use Module::Load::Conditional qw(can_load); use C4::Context; BEGIN { - push @INC, C4::Context->config("pluginsdir"); + my $pluginsdir = C4::Context->config("pluginsdir"); + my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir; + push( @INC, @pluginsdir ); } =head1 NAME --- a/plugins/plugins-upload.pl +++ a/plugins/plugins-upload.pl @@ -56,6 +56,7 @@ my %errors; if ($plugins_enabled) { if ( ( $op eq 'Upload' ) && $uploadfile ) { my $plugins_dir = C4::Context->config("pluginsdir"); + $plugins_dir = ref($plugins_dir) eq 'ARRAY' ? $plugins_dir->[0] : $plugins_dir; my $dirname = File::Temp::tempdir( CLEANUP => 1 ); $debug and warn "dirname = $dirname"; --