Changeset 2887
- Timestamp:
- 08/01/08 23:29:45 (4 months ago)
- Files:
-
- branches/release-42/lib/MT/CMS/Template.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-42/lib/MT/CMS/Template.pm
r2876 r2887 311 311 $param->{static_maps} = $build_type == MT::PublishOption::DYNAMIC() ? 0 : 1; 312 312 $param->{build_type_0} = 1 unless $build_type_0; 313 } else { 314 $param->{can_rebuild} = 0; 313 315 } 314 316 } … … 559 561 560 562 $param->{can_preview} = 1 561 if (!$param->{is_special}) && (!$obj || ($obj && ($obj->outfile || '') !~ m/\.(css|xml|rss|js)$/)) ;563 if (!$param->{is_special}) && (!$obj || ($obj && ($obj->outfile || '') !~ m/\.(css|xml|rss|js)$/)) && (!exists $param->{can_preview}); 562 564 563 565 1; … … 2162 2164 2163 2165 $app->return_args( $return_args ); 2166 return $app->call_return unless %ats; 2167 2164 2168 $app->param( 'template_id', $tmpl_id ); 2165 2169 $app->param( 'single_template', 1 ); # forces fullscreen mode
