Changeset 2458

Show
Ignore:
Timestamp:
05/29/08 08:40:40 (21 months ago)
Author:
fumiakiy
Message:

0 is a valid value for cache_expire_type. BugId:79935

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/CMS/Template.pm

    r2444 r2458  
    13281328    $obj->include_with_ssi( $app->param('include_with_ssi') ? 1 : 0 ); 
    13291329    $obj->cache_path( $app->param('cache_path')); 
    1330     my $cache_expire_type = $app->param('cache_expire_type') || ''; 
     1330    my $cache_expire_type = defined $app->param('cache_expire_type') 
     1331      ? $app->param('cache_expire_type') 
     1332      : '0'; 
    13311333    $obj->cache_expire_type($cache_expire_type); 
    13321334    my $period   = $app->param('cache_expire_period');