Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dispatch_to_class fixed

  • Loading branch information...
commit c0d2aac034db15d1edb3adf60606ba148f315687 1 parent def5568
Zbigniew Lukasiak authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/WebNano/DirController.pm
View
5 lib/WebNano/DirController.pm
@@ -26,14 +26,13 @@ sub dispatch_to_class {
warn qq{Dispatching to "$controller_class"\n} if $self->DEBUG;
return $controller_class->handle(
%{ $args },
- path => $path,
- self_url => $args{self_url} . $to. '/',
+ self_url => $args->{self_url} . $to. '/',
);
}
sub handle {
my ( $class, %args ) = @_;
- my $path = delete $args{path};
+ my $path = $args{path};
my $self = $class->new( %args );
my $out = $self->local_dispatch( @$path );
return $out if defined( $out );
Please sign in to comment.
Something went wrong with that request. Please try again.