X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FComponent%2FSubInclude%2FESI.pm;h=4ce77993f43dadec8bc3fe6f3e2b25260aa9afe0;hp=6b258fb1b83efc8732f427afe94d983bb2e282ac;hb=edc887a1b81e9b8104410f0f00dfab9d3ee5fc9a;hpb=c33bb2368e4b3ad3c1e0555d3f188f3e0f682372 diff --git a/lib/Catalyst/View/Component/SubInclude/ESI.pm b/lib/Catalyst/View/Component/SubInclude/ESI.pm index 6b258fb..4ce7799 100644 --- a/lib/Catalyst/View/Component/SubInclude/ESI.pm +++ b/lib/Catalyst/View/Component/SubInclude/ESI.pm @@ -57,12 +57,7 @@ common interface for plugins. sub generate_subinclude { my ($class, $c, $path, @params) = @_; - my $args = ref $params[0] eq 'ARRAY' ? shift @params : []; - - my $dispatcher = $c->dispatcher; - my ($action) = $dispatcher->_invoke_as_path( $c, $path, $args ); - - my $uri = $c->uri_for( $action, $args, @params ); + my $uri = $c->uri_for_action( $path, @params ); return ''; }