|
Lines 48-57
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 |
my $schema = $app->home->rel_file("api/swagger-v2-schema.json"); |
51 |
$self->{'swagger-v2-schema'} = $app->home->rel_file("api/swagger-v2-schema.json"); |
| 52 |
if ($schema){ |
|
|
| 53 |
$self->{'swagger-v2-schema'} = $schema; |
| 54 |
} |
| 55 |
|
52 |
|
| 56 |
# plugin needs to define a namespace |
53 |
# plugin needs to define a namespace |
| 57 |
@plugins = Koha::Plugins->new()->GetPlugins( |
54 |
@plugins = Koha::Plugins->new()->GetPlugins( |
| 58 |
- |
|
|