Show
Ignore:
Timestamp:
09/02/08 02:10:13 (15 months ago)
Author:
auno
Message:

Set manually publishing option properly for upgrading from MT3. BugzID:81689

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/MT/Upgrade/v4.pm

    r3013 r3014  
    406406                    MT::CMS::Blog::update_publishing_profile( $App, $blog ); 
    407407                    require MT::Template; 
     408                    require MT::PublishOption; 
    408409                    my @tmpls = MT::Template->load( { blog_id => $blog->id } ); 
    409410                    foreach my $tmpl (@tmpls) { 
     
    411412                        if ( $tmpl->build_dynamic ) { 
    412413                            require MT::TemplateMap; 
    413                             require MT::PublishOption; 
    414414                            $tmpl->build_type( MT::PublishOption::DYNAMIC() ); 
    415415                            $tmpl->save; 
     
    421421                                $map->save; 
    422422                            } 
     423                        } 
     424                        if ( !$tmpl->rebuild_me && $tmpl->type eq 'index' ) { 
     425                            $tmpl->build_type( 
     426                                MT::PublishOption::MANUALLY() ); 
     427                            $tmpl->save; 
    423428                        } 
    424429                    }