From: Marcus Ramberg Date: Fri, 21 Oct 2005 08:18:59 +0000 (+0000) Subject: turned off timer by default. X-Git-Tag: v0.30~63 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63714e3ffff12240c07c20b4388d3549ccbd18b2;hp=19ee577af75c8bdd9b41bf972bd76a69b6a822ea;p=catagits%2FCatalyst-View-TT.git turned off timer by default. --- diff --git a/Changes b/Changes index fd5977e..3a14158 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Perl extension Catalyst::View::TT. 0.14 - TBR + - Turn timer off by default, even for debug. - removed superflous 'templates' inside 'root' - made it possible to forward to the message action by passing the message in the stash. (example) 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');