Lines 48-60
sub register {
Link Here
|
48 |
if ( C4::Context->preference('UseKohaPlugins') |
48 |
if ( C4::Context->preference('UseKohaPlugins') |
49 |
&& C4::Context->config("enable_plugins") ) |
49 |
&& C4::Context->config("enable_plugins") ) |
50 |
{ |
50 |
{ |
|
|
51 |
# plugin needs to define a namespace |
51 |
@plugins = Koha::Plugins->new()->GetPlugins( |
52 |
@plugins = Koha::Plugins->new()->GetPlugins( |
52 |
{ |
53 |
{ |
53 |
method => 'api_namespace', |
54 |
method => 'api_namespace', |
54 |
} |
55 |
} |
55 |
); |
56 |
); |
56 |
# plugin needs to define a namespace |
|
|
57 |
#@plugins = grep { $_->api_namespace } @plugins; |
58 |
} |
57 |
} |
59 |
|
58 |
|
60 |
foreach my $plugin ( @plugins ) { |
59 |
foreach my $plugin ( @plugins ) { |