1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-28 12:10:52 +02:00

Update feedparser.php

This commit is contained in:
syrnon 2013-07-03 22:35:38 +03:00
parent 776b19536d
commit deeeee76d2

View File

@ -103,9 +103,18 @@ class FeedParser {
if (!$articles || $articles->length == 0)
$articles = $xpath->query("//atom03:entry");
foreach ($articles as $article) {
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath));
$feed = $this->xpath->query("//atom:feed")->item(0);
$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;
case $this::FEED_RSS: