Show
Ignore:
Timestamp:
07/11/08 19:02:40 (4 months ago)
Author:
aarkerio
Message:

Feeders

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/podcasts/rss/rss.ctp

    r646 r648  
    22function rss_transform($item) 
    33{ 
    4  return array('title' => $item['Entry']['title'], 
    5              'link' => array('controller'=>'entries', 'action' => 'view', $item['User']['username'], $item['Entry']['id']), 
    6          'guid' => array('controller'=> 'entries','action' => 'view', $item['User']['username'], $item['Entry']['id']), 
    7            'description' => strip_tags($item['Entry']['body']), 
    8            'pubDate' => $item['Entry']['created'] 
     4 return array( 
     5      'title' => $item['Podcast']['title'], 
     6      'link' => array('controller'=> 'files', 'action' => 'podcasts', $item['Podcast']['filename']), 
     7      'guid' => array('controller'=> 'files', 'action' => 'podcasts', $item['Podcast']['filename']), 
     8      'description' => strip_tags($item['Podcast']['description']), 
     9      'pubDate' => $item['Podcast']['created'] 
    910           ); 
    1011} 
    1112 
    12 $this->set('items', $rss->items($entries, 'rss_transform')); 
     13$this->set('items', $rss->items($podcasts, 'rss_transform')); 
    1314?>