calling config on app object instead of context class (fix for t/live_stats.t )
Zbigniew Łukasiak [Tue, 17 Nov 2009 14:30:23 +0000 (14:30 +0000)]
lib/Catalyst/Context.pm

index 32b9221..df9a215 100644 (file)
@@ -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}++;