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/Blog.pm

    r1971 r2051  
    497497                                      archive_type => $archive_type}); 
    498498    return 0 unless @maps; 
    499     require MT::Template; 
     499    require MT::PublishOption; 
    500500    foreach my $map (@maps) {   
    501         my $tmpl = MT::Template->load($map->template_id) 
    502             or return 0; 
    503         $result++ if !$tmpl->build_dynamic; 
     501        $result++ if $map->build_type != MT::PublishOption::DYNAMIC(); 
    504502    } 
    505503    #$result ||= 1 if ($blog->custom_dynamic_templates || '') ne 'custom';