From: Zbigniew Łukasiak Date: Tue, 17 Nov 2009 14:30:23 +0000 (+0000) Subject: calling config on app object instead of context class (fix for t/live_stats.t ) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=1a4f82a004de1f539ee0bb086b78533147a6756f calling config on app object instead of context class (fix for t/live_stats.t ) --- diff --git a/lib/Catalyst/Context.pm b/lib/Catalyst/Context.pm index 32b9221..df9a215 100644 --- a/lib/Catalyst/Context.pm +++ b/lib/Catalyst/Context.pm @@ -707,9 +707,8 @@ sub execute { sub _stats_start_execute { my ( $c, $code ) = @_; - my $appclass = ref($c) || $c; return if ( ( $code->name =~ /^_.*/ ) - && ( !$appclass->config->{show_internal_actions} ) ); + && ( !$c->config->{show_internal_actions} ) ); my $action_name = $code->reverse(); $c->counter->{$action_name}++;