View | Details | Raw Unified | Return to bug 25222
Collapse All | Expand All

(-)a/Koha/Plugins.pm (-1 / +9 lines)
Lines 20-25 package Koha::Plugins; Link Here
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Class::Inspector;
22
use Class::Inspector;
23
use File::Find::Rule;
23
use List::MoreUtils qw(any);
24
use List::MoreUtils qw(any);
24
use Module::Load::Conditional qw(can_load);
25
use Module::Load::Conditional qw(can_load);
25
use Module::Load qw(load);
26
use Module::Load qw(load);
Lines 32-38 use Koha::Plugins::Methods; Link Here
32
BEGIN {
33
BEGIN {
33
    my $pluginsdir = C4::Context->config("pluginsdir");
34
    my $pluginsdir = C4::Context->config("pluginsdir");
34
    my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir;
35
    my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir;
35
    push( @INC, @pluginsdir );
36
    foreach my $dir ( @pluginsdir ) {
37
        my @dirs = File::Find::Rule->new
38
            ->maxdepth(1)
39
            ->directory
40
            ->in($dir);
41
42
        push( @INC, @dirs );
43
    }
36
    pop @INC if $INC[-1] eq '.';
44
    pop @INC if $INC[-1] eq '.';
37
}
45
}
38
46
(-)a/cpanfile (-1 / +1 lines)
Lines 39-44 requires 'Email::Date', '1.103'; Link Here
39
requires 'Email::MessageID', '1.406';
39
requires 'Email::MessageID', '1.406';
40
requires 'Email::Valid', '0.190';
40
requires 'Email::Valid', '0.190';
41
requires 'Exception::Class', '1.38';
41
requires 'Exception::Class', '1.38';
42
requires 'File::Find::Rule', '1.34';
42
requires 'File::Slurp', '9999.13';
43
requires 'File::Slurp', '9999.13';
43
requires 'Font::TTF', '0.45';
44
requires 'Font::TTF', '0.45';
44
requires 'GD', '2.39';
45
requires 'GD', '2.39';
45
- 

Return to bug 25222