Show
Ignore:
Timestamp:
07/08/08 05:52:36 (17 months ago)
Author:
bchoate
Message:

Updated MultiBlog to issue triggered publishing for scheduled posts. BugId:80355

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/plugins/MultiBlog/lib/MultiBlog.pm

    r1522 r2727  
    101101        } 
    102102 
     103        require MT::Entry; 
     104        if ( ( $entry->status || 0 ) == MT::Entry::RELEASE() ) { 
     105            while ( my ( $id, $a ) = each( %{ $d->{'entry_pub'} } ) ) { 
     106                next if $id == $blog_id; 
     107                perform_mb_action( $app, $id, $_ ) foreach keys %$a; 
     108            } 
     109        } 
     110    } 
     111} 
     112 
     113sub post_entry_pub { 
     114    my $plugin = shift; 
     115    my ( $eh, $app, $entry ) = @_; 
     116    my $blog_id = $entry->blog_id; 
     117 
     118    foreach my $scope ("blog:$blog_id", "system") { 
     119        my $d = $plugin->get_config_value( $scope eq 'system' ? 'all_triggers' : 'other_triggers', $scope ); 
    103120        require MT::Entry; 
    104121        if ( ( $entry->status || 0 ) == MT::Entry::RELEASE() ) {