Changeset 2049 for branches/release-36/lib/MT/CMS/Template.pm
- Timestamp:
- 04/23/08 06:26:24 (19 months ago)
- Files:
-
- 1 modified
-
branches/release-36/lib/MT/CMS/Template.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-36/lib/MT/CMS/Template.pm
r2047 r2049 477 477 $param->{include_with_ssi} = 0; 478 478 $param->{cache_path} = ''; 479 $param->{cache_enabled} = 0;480 479 $param->{cache_expire_type} = 0; 481 480 $param->{cache_expire_period} = ''; … … 488 487 $param->{cache_path} = $obj->cache_path 489 488 if defined $obj->cache_path; 490 $param->{cache_enabled} = $obj->use_cache491 if defined $obj->use_cache;492 489 $param->{cache_expire_type} = $obj->cache_expire_type 493 490 if defined $obj->cache_expire_type; … … 562 559 $template_type = 'system'; 563 560 } 564 $row->{use_cache} = $obj->use_cache? 1 : 0;561 $row->{use_cache} = ( $obj->cache_expire_type != 0 ) ? 1 : 0; 565 562 $row->{template_type} = $template_type; 566 563 $row->{type} = 'entry' if $type eq 'individual'; … … 1239 1236 $obj->include_with_ssi( $app->param('include_with_ssi') ? 1 : 0 ); 1240 1237 $obj->cache_path( $app->param('cache_path')); 1241 $obj->use_cache( $app->param('cache_enabled') ? 1 : 0 );1242 1238 my $cache_expire_type = $app->param('cache_expire_type'); 1243 1239 $obj->cache_expire_type($cache_expire_type); … … 1411 1407 my $published_url = $tmpl->published_url; 1412 1408 $row->{published_url} = $published_url if $published_url; 1413 $row->{use_cache} = $tmpl->use_cache? 1 : 0;1409 $row->{use_cache} = ( $tmpl->cache_expire_type != 0 ) ? 1 : 0; 1414 1410 1415 1411 # FIXME: enumeration of types
