2.diff

Geoffrey Sneddon, 2008-02-03 11:35

Download (1.4 KB)

 
simplepie.inc (revision 921)
5518 5518
                    $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
5519 5519
                }
5520 5520
            }
5521

  
5522
            if (sizeof($this->data['enclosures']) == 0)
5523
            {
5524
                // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
5525
                $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
5526
            }
5527

  
5521 5528
            $this->data['enclosures'] = array_values(SimplePie_Misc::array_unique($this->data['enclosures']));
5522 5529
        }
5523 5530
        if (!empty($this->data['enclosures']))