Changeset 1348
- Timestamp:
- 01/31/08 02:09:10 (6 months ago)
- Files:
-
- branches/release-29/lib/MT/App/CMS.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-29/lib/MT/App/CMS.pm
r1346 r1348 8426 8426 if ( $screen eq 'cfg_archives' ) { 8427 8427 if ( my $dcty = $app->param('dynamicity') ) { 8428 if ( $dcty eq 'none' ) { 8429 require MT::Template; 8430 my @tmpls = MT::Template->load({ build_dynamic => 1}); 8431 for my $tmpl (@tmpls) { 8432 $tmpl->build_dynamic(0); 8433 $tmpl->save; 8428 my $dcty_changed = $dcty ne $original->custom_dynamic_templates ? 1 : 0; 8429 8430 if ($dcty_changed) { 8431 if ( $dcty eq 'none' ) { 8432 require MT::Template; 8433 my @tmpls = MT::Template->load({ build_dynamic => 1 }); 8434 for my $tmpl (@tmpls) { 8435 $tmpl->build_dynamic(0); 8436 $tmpl->save; 8437 } 8434 8438 } 8435 }8436 else {8437 8439 $app->update_dynamicity( 8438 8440 $obj, … … 8440 8442 $app->param('dynamic_conditional') ? 1 : 0 8441 8443 ); 8444 } 8445 8446 # If either of the publishing paths changed, rebuild the fileinfos. 8447 my $site_root_changed = $app->param('site_path') 8448 && $app->param('site_path') ne $original->site_path; 8449 my $archive_root_changed = $app->param('archive_path') 8450 && $app->param('archive_path') ne $original->archive_path; 8451 if ($dcty ne 'none' && ($dcty_changed || $site_root_changed 8452 || $archive_root_changed)) { 8442 8453 $app->rebuild( BlogID => $obj->id, NoStatic => 1 ) 8443 8454 or return $app->publish_error(); 8444 8455 } 8445 8456 } 8446 $app->cfg_archives_save($obj); 8457 8458 $app->cfg_archives_save($obj) or return; 8447 8459 } 8448 8460 if ( $screen eq 'cfg_prefs' ) {
