Changeset 1977

Show
Ignore:
Timestamp:
04/18/08 06:10:51 (22 months ago)
Author:
bchoate
Message:

Fixed test for using publish queue for a given template/templatemap. BugId:79384

Files:
1 modified

Legend:

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

    r1824 r1977  
    17701770    my ( $cb, %args ) = @_; 
    17711771 
    1772     my $blog = $args{blog}; 
    1773     return 1 unless $blog && $blog->publish_queue; 
    1774  
    17751772    my $fi = $args{file_info}; 
    17761773    return 1 if $fi->{from_queue}; 
     
    17781775    require MT::PublishOption; 
    17791776    my $throttle = MT::PublishOption::get_throttle($fi); 
    1780     return 1 if $throttle->{type} == MT::PublishOption::ONDEMAND(); 
     1777    return 1 if $throttle->{type} != MT::PublishOption::ASYNC(); 
    17811778    return 0 if $throttle->{type} == MT::PublishOption::DISABLED(); 
    17821779