Changeset 677 for trunk/app/controllers
- Timestamp:
- 07/28/08 12:25:20 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/podcasts_controller.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/podcasts_controller.php
r651 r677 38 38 39 39 $limit = 20; 40 40 41 $this->Podcast->bindModel(array('belongsTo'=>array('User')) ); 41 42 $this->set('data', $this->Podcast->findAll($conditions, $fields, $order, $limit)); … … 63 64 public function rss($username) 64 65 { 65 $channelData = array('title' => $username.' Podcasts', 66 'link' => array('controller' => 'blog', 'action' => $username), 67 'url' => array('controller' => 'blog', 'action' => $username), 68 'description' => 'Audio from edublog', 69 'language' => 'en-us' 66 $channelData = array('title' => $username.' Podcasts', 67 'link' => array('controller' => 'blog', 'action' => $username), 68 'url' => array('controller' => 'blog', 'action' => $username), 69 'description' => 'Audio from edublog', 70 'language' => 'en-us', 71 'copyright' => 'Chipotle Software, 2008', 72 'managingEditor' => 'podcasts@chipotle-software.com', 73 'itunes:owner' => array('itunes:email'=> 'manuel@mononeurona.org') 70 74 ); 71 75 … … 160 164 161 165 //die($type); 162 163 if ( $type != "audio/mpeg" ): 166 $types = array('audio/mpeg', 'audio/x-mp3'); 167 168 if ( !in_array($type, $types) ): 164 169 // valid file ?? 165 170 $err = "ERROR the file $podfile_name $podfile is not valid. Only .mp3 files. The current type file: " . $type;
