Bug 22835: (follow-up) Remove comented code

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 60ba3e8c63)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Agustin Moyano 2019-05-16 00:09:38 -03:00 committed by Lucas Gass
parent 8e7a9c407d
commit a3cd7581db
2 changed files with 1 additions and 3 deletions

View 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 ) {

View 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 {