Permalink
Browse files

dispatch_to_class fixed

  • Loading branch information...
Zbigniew Lukasiak
Zbigniew Lukasiak committed May 2, 2012
1 parent def5568 commit c0d2aac034db15d1edb3adf60606ba148f315687
Showing with 2 additions and 3 deletions.
  1. +2 −3 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 );

0 comments on commit c0d2aac

Please sign in to comment.