Changeset 677 for trunk/app/controllers

Show
Ignore:
Timestamp:
07/28/08 12:25:20 (4 months ago)
Author:
aarkerio
Message:

Update testt

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/podcasts_controller.php

    r651 r677  
    3838         
    3939   $limit      = 20; 
     40 
    4041   $this->Podcast->bindModel(array('belongsTo'=>array('User')) ); 
    4142   $this->set('data', $this->Podcast->findAll($conditions, $fields, $order, $limit)); 
     
    6364 public function rss($username)  
    6465 {  
    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') 
    7074               ); 
    7175        
     
    160164     
    161165    //die($type); 
    162      
    163     if ( $type != "audio/mpeg" ):  
     166    $types = array('audio/mpeg', 'audio/x-mp3'); 
     167 
     168    if ( !in_array($type, $types) ):  
    164169      // valid file ?? 
    165170      $err =   "ERROR the file $podfile_name $podfile is not valid. Only .mp3 files. The current type file: " . $type;