X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FPath.pm;h=81603d5701ab35b255c79594cd70c6955e0bb40c;hp=67ea4113736d3d8608755ad9672db9638e82b1eb;hb=11bd4e3eaa29685c44318041381621e79c4a5f44;hpb=5d1266aecbc3b839f0b904093ccf282a73e06c91 diff --git a/lib/Catalyst/DispatchType/Path.pm b/lib/Catalyst/DispatchType/Path.pm index 67ea411..81603d5 100644 --- a/lib/Catalyst/DispatchType/Path.pm +++ b/lib/Catalyst/DispatchType/Path.pm @@ -47,7 +47,7 @@ sub match { $c->req->action($path); $c->req->match($path); $c->action($action); - $c->namespace( $action->prefix ); + $c->namespace( $action->namespace ); return 1; } @@ -66,7 +66,7 @@ sub register { foreach my $r ( @{ $attrs->{Path} || [] } ) { unless ( $r =~ m!^/! ) { # It's a relative path - $r = $action->prefix . "/$r"; + $r = $action->namespace . "/$r"; } push( @register, $r ); } @@ -76,7 +76,7 @@ sub register { } if ( $attrs->{Local} || $attrs->{Relative} ) { - push( @register, join( '/', $action->prefix, $action->name ) ); + push( @register, join( '/', $action->namespace, $action->name ) ); # Register sub name as a relative path }