Changeset 866

Show
Ignore:
Timestamp:
08/31/08 14:10:00 (3 months ago)
Author:
rickc
Message:

Sorted out the enclosure controls being passed between functions. Thank you, ringmaster!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/podcast/trunk/podcast.plugin.php

    r865 r866  
    180180    public function action_form_publish($form, $post) 
    181181    { 
    182         if($post->content_type === Post::type('podcast') ) { 
     182        if( $form->content_type->value == Post::type('podcast') ) { 
    183183            $feeds = Options::get('podcast__feeds'); 
    184184            $output = ''; 
     
    205205    public function action_publish_post($post, $form) 
    206206    { 
    207         if( $post->content_type === Post::type( 'podcast' ) ) { 
    208     Utils::debug( $form->get_values()); 
     207        if( $post->content_type == Post::type( 'podcast' ) ) { 
    209208            $feeds = Options::get('podcast__feeds'); 
    210209            foreach($feeds as $feed => $feedtype) {