@ -9,7 +9,7 @@ abstract class FeedItem {
abstract function get_comments_url();
abstract function get_comments_count();
abstract function get_categories();
abstract function _get_enclosures();
abstract function get_enclosures();
abstract function get_author();
abstract function get_language();
}
@ -119,7 +119,7 @@ class FeedItem_Atom extends FeedItem_Common {
return $this->normalize_categories($cats);
function _get_enclosures() {
function get_enclosures() {
$links = $this->elem->getElementsByTagName("link");
$encs = array();
@ -138,7 +138,7 @@ class FeedItem_Atom extends FeedItem_Common {
$encs = array_merge($encs, parent::_get_enclosures());
$encs = array_merge($encs, parent::get_enclosures());
return $encs;
@ -78,7 +78,7 @@ abstract class FeedItem_Common extends FeedItem {
// this is common for both Atom and RSS types and deals with various media: elements
$encs = [];
$enclosures = $this->xpath->query("media:content", $this->elem);
@ -112,7 +112,7 @@ class FeedItem_RSS extends FeedItem_Common {
$enclosures = $this->elem->getElementsByTagName("enclosure");
@ -129,7 +129,7 @@ class FeedItem_RSS extends FeedItem_Common {
array_push($encs, $enc);
@ -744,7 +744,7 @@ class RSSUtils {
$enclosures = array();
$encs = $item->_get_enclosures();
$encs = $item->get_enclosures();
if (is_array($encs)) {
foreach ($encs as $e) {