X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=d70a9e6b175bdd3ceb2c77acb6b6519d7605aa20;hb=8604aac5eee4b40f048da62924a47bca9e0e2451;hp=1adf5576a326670f32394729986e12a5c4a64471;hpb=8767c5a3e3e357113d0092cef50d81f358be8b92;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 1adf557..d70a9e6 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -43,7 +43,7 @@ our $DETACH = "catalyst_detach\n"; require Module::Pluggable::Fast; # Helper script generation -our $CATALYST_SCRIPT_GEN = 10; +our $CATALYST_SCRIPT_GEN = 11; __PACKAGE__->mk_classdata($_) for qw/components arguments dispatcher engine log dispatcher_class @@ -54,7 +54,7 @@ __PACKAGE__->engine_class('Catalyst::Engine::CGI'); __PACKAGE__->request_class('Catalyst::Request'); __PACKAGE__->response_class('Catalyst::Response'); -our $VERSION = '5.49_03'; +our $VERSION = '5.49_04'; sub import { my ( $class, @arguments ) = @_; @@ -843,7 +843,11 @@ sub execute { my ( $c, $class, $code ) = @_; $class = $c->components->{$class} || $class; $c->state(0); - my $callsub = ( caller(1) )[3]; + + my $callsub = + ( caller(0) )[0]->isa('Catalyst::Action') + ? ( caller(2) )[3] + : ( caller(1) )[3]; my $action = ''; if ( $c->debug ) {