Update feedparser.php
This commit is contained in:
parent
776b19536d
commit
deeeee76d2
|
@ -103,9 +103,18 @@ class FeedParser {
|
||||||
if (!$articles || $articles->length == 0)
|
if (!$articles || $articles->length == 0)
|
||||||
$articles = $xpath->query("//atom03:entry");
|
$articles = $xpath->query("//atom03:entry");
|
||||||
|
|
||||||
foreach ($articles as $article) {
|
$feed = $this->xpath->query("//atom:feed")->item(0);
|
||||||
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath));
|
$atts = $feed->attributes;
|
||||||
|
foreach($atts as $attrib)
|
||||||
|
{
|
||||||
|
if($attrib->name == "base"){
|
||||||
|
$base = $attrib->nodeValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
foreach ($articles as $article) {
|
||||||
|
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath, $base));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case $this::FEED_RSS:
|
case $this::FEED_RSS:
|
||||||
|
|
Loading…
Reference in New Issue