Fix visit
Tomas Doran [Sun, 24 Jan 2010 16:10:35 +0000 (16:10 +0000)]
lib/Catalyst/View/Component/SubInclude/Visit.pm

index d1a3917..22e2c90 100644 (file)
@@ -73,7 +73,7 @@ sub generate_subinclude {
         local $c->response->{body};
 
         my $captures = ref $params[0] eq 'ARRAY' ? shift @params : [];
-        $c->visit( $path, \@params, $captures );
+        $c->visit( $path, $captures, \@params );
 
         return $c->response->{body};
     }