turned off timer by default.
Marcus Ramberg [Fri, 21 Oct 2005 08:18:59 +0000 (08:18 +0000)]
Changes
lib/Catalyst/View/TT.pm

diff --git a/Changes b/Changes
index fd5977e..3a14158 100644 (file)
--- 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)
index 4e94869..93fad62 100644 (file)
@@ -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');