mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
rename unfairly prefixed get_enclosures() in feeditem
This commit is contained in:
@@ -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
|
||||
function _get_enclosures() {
|
||||
function get_enclosures() {
|
||||
$encs = [];
|
||||
|
||||
$enclosures = $this->xpath->query("media:content", $this->elem);
|
||||
|
||||
@@ -112,7 +112,7 @@ class FeedItem_RSS extends FeedItem_Common {
|
||||
return $this->normalize_categories($cats);
|
||||
}
|
||||
|
||||
function _get_enclosures() {
|
||||
function get_enclosures() {
|
||||
$enclosures = $this->elem->getElementsByTagName("enclosure");
|
||||
|
||||
$encs = array();
|
||||
@@ -129,7 +129,7 @@ class FeedItem_RSS extends FeedItem_Common {
|
||||
array_push($encs, $enc);
|
||||
}
|
||||
|
||||
$encs = array_merge($encs, parent::_get_enclosures());
|
||||
$encs = array_merge($encs, parent::get_enclosures());
|
||||
|
||||
return $encs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user