X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FTT.pm;h=93fad62133841c543ebe5bfa0f973689d011279e;hb=63714e3ffff12240c07c20b4388d3549ccbd18b2;hp=4e948697a8304163cd8efef40586c663c3f212f5;hpb=19ee577af75c8bdd9b41bf972bd76a69b6a822ea;p=catagits%2FCatalyst-View-TT.git diff --git a/lib/Catalyst/View/TT.pm b/lib/Catalyst/View/TT.pm index 4e94869..93fad62 100644 --- a/lib/Catalyst/View/TT.pm +++ b/lib/Catalyst/View/TT.pm @@ -275,7 +275,7 @@ sub new { # Template::Timer as a custom CONTEXT object, but only if we haven't # already got a custom CONTEXT defined - if ( $config->{TIMER} || ( $c->debug() && !exists $config->{TIMER} ) ) { + if ( $config->{TIMER} ( { if ( $config->{CONTEXT} ) { $c->log->error( 'Cannot use Template::Timer - a TT CONFIG is already defined');