Show
Ignore:
Timestamp:
02/13/08 04:30:51 (22 months ago)
Author:
bchoate
Message:

Fixes for timer bug affecting MT-Wizard. BugId:68176

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mt4.11/lib/MT/Template.pm

    r1361 r1362  
    215215    if (MT->config->PerformanceLogging) { 
    216216        $timer = MT->get_timer(); 
    217         # $start = Time::HiRes::time(); 
    218     } else { 
    219         $timer = {}; 
    220     } 
    221     local $timer->{elapsed} = 0; 
     217    } 
     218    local $timer->{elapsed} = 0 if $timer; 
    222219 
    223220    local $ctx->{__stash}{template} = $tmpl; 
     
    259256 
    260257    if ($timer) { 
    261         # $timer->{prev} = $start; 
    262258        $timer->mark("MT::Template::build[" . ($tmpl->name || $tmpl->{__file}).']'); 
    263259    }