Bug 22835: (follow-up) Remove comented code
authorAgustin Moyano <agustinmoyano@theke.io>
Thu, 16 May 2019 03:09:38 +0000 (00:09 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 16:34:53 +0000 (17:34 +0100)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/REST/Plugin/PluginRoutes.pm
Koha/REST/V1/Static.pm

index 43ac913..273d5df 100644 (file)
@@ -48,13 +48,12 @@ sub register {
     if (   C4::Context->preference('UseKohaPlugins')
         && C4::Context->config("enable_plugins") )
     {
+        # plugin needs to define a namespace
         @plugins = Koha::Plugins->new()->GetPlugins(
             {
                 method => 'api_namespace',
             }
         );
-        # plugin needs to define a namespace
-        #@plugins = grep { $_->api_namespace } @plugins;
     }
 
     foreach my $plugin ( @plugins ) {
index 0883a37..e64fd83 100644 (file)
@@ -68,7 +68,6 @@ sub get {
         return try {
             my $asset = Mojo::Asset::File->new(path => join('/', $basepath, $relpath));
             return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless $asset->is_file;
-            # $c->res->headers->content_type("image/jpeg");
             return $c->reply->asset($asset);
         }
         catch {