Changeset 1959
- Timestamp:
- 04/17/08 23:23:13 (3 months ago)
- Files:
-
- branches/release-35/lib/MT/CMS/Template.pm (modified) (2 diffs)
- branches/release-35/lib/MT/Template.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-35/lib/MT/CMS/Template.pm
r1949 r1959 1268 1268 require MT::PublishOption; 1269 1269 my $build_type = $app->param('build_type'); 1270 1270 1271 if ( $build_type == MT::PublishOption::SCHEDULED() ) { 1271 1272 my $period = $app->param('schedule_period'); … … 1281 1282 } 1282 1283 $obj->rebuild_me($rebuild_me); 1283 $obj->build_dynamic( $build_type == MT::PublishOption::DYNAMIC() ? 1 : 0 );1284 1285 1284 1; 1286 1285 } branches/release-35/lib/MT/Template.pm
r1957 r1959 329 329 sub build_dynamic { 330 330 my $tmpl = shift; 331 return $tmpl->SUPER::build_dynamic($_[0]) if @_; 331 332 require MT::PublishOption; 332 if (@_) {333 $tmpl->build_type($_[0] ? MT::PublishOption::DYNAMIC() : MT::PublishOption::ONDEMAND());334 }335 333 return 1 if $tmpl->build_type == MT::PublishOption::DYNAMIC(); 336 334 }
