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

(-)a/Koha/REST/Plugin/PluginRoutes.pm (-5 / +1 lines)
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
- 

Return to bug 23653