Changeset 1959

Show
Ignore:
Timestamp:
04/17/08 23:23:13 (3 months ago)
Author:
bchoate
Message:

Fixes for build_dynamic assignment. BugId:79379

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-35/lib/MT/CMS/Template.pm

    r1949 r1959  
    12681268    require MT::PublishOption; 
    12691269    my $build_type = $app->param('build_type'); 
     1270 
    12701271    if ( $build_type == MT::PublishOption::SCHEDULED() ) { 
    12711272        my $period   = $app->param('schedule_period'); 
     
    12811282    } 
    12821283    $obj->rebuild_me($rebuild_me); 
    1283     $obj->build_dynamic( $build_type == MT::PublishOption::DYNAMIC() ? 1 : 0 ); 
    1284  
    12851284    1; 
    12861285} 
  • branches/release-35/lib/MT/Template.pm

    r1957 r1959  
    329329sub build_dynamic { 
    330330    my $tmpl = shift; 
     331    return $tmpl->SUPER::build_dynamic($_[0]) if @_; 
    331332    require MT::PublishOption; 
    332     if (@_) { 
    333         $tmpl->build_type($_[0] ? MT::PublishOption::DYNAMIC() : MT::PublishOption::ONDEMAND()); 
    334     } 
    335333    return 1 if $tmpl->build_type == MT::PublishOption::DYNAMIC(); 
    336334}