Show
Ignore:
Timestamp:
04/24/08 03:02:29 (19 months ago)
Author:
fumiakiy
Message:

Fixed to create required files for dynamic publishing when an individual template is set to publish dynamically. BugId:79337

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-36/lib/MT/WeblogPublisher.pm

    r2023 r2051  
    10091009    # we move the file that might be there so that the custom 
    10101010    # 404 will be triggered. 
    1011     if ( $tmpl->build_dynamic ) { 
     1011    require MT::PublishOption; 
     1012    if ( $tmpl->build_dynamic 
     1013      || ( $map->build_type == MT::PublishOption::DYNAMIC() ) ) 
     1014    { 
    10121015        rename( 
    10131016            $finfo->file_path,    # is this just $file ? 
     
    10221025    } 
    10231026 
    1024     return 1 if ( $tmpl->build_dynamic ); 
     1027    return 1 if ( $tmpl->build_dynamic ) 
     1028        || ( $map->build_type == MT::PublishOption::DYNAMIC() ); 
    10251029    return 1 if ( $entry && $entry->status != MT::Entry::RELEASE() ); 
    10261030    return 1 unless ( $tmpl->build_type );