turned off timer by default.
[catagits/Catalyst-View-TT.git] / lib / Catalyst / View / TT.pm
index 736584d..93fad62 100644 (file)
@@ -6,7 +6,7 @@ use Template;
 use Template::Timer;
 use NEXT;
 
-our $VERSION = '0.13';
+our $VERSION = '0.14';
 
 __PACKAGE__->mk_accessors('template');
 
@@ -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');