Skip to content

Commit

Permalink
Use the correct method on registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Jan 16, 2012
1 parent 32a6ea1 commit 1350fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimplePie/Item.php
Expand Up @@ -2589,7 +2589,7 @@ public function get_enclosures()
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $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));
}

$this->data['enclosures'] = array_values($this->registry('Misc', 'array_unique', array($this->data['enclosures'])));
$this->data['enclosures'] = array_values($this->registry->call('Misc', 'array_unique', array($this->data['enclosures'])));
}
if (!empty($this->data['enclosures']))
{
Expand Down

0 comments on commit 1350fa2

Please sign in to comment.