Skip to content
Snippets Groups Projects
Commit f150f85a authored by syrnon's avatar syrnon
Browse files

reverted changes

parent bfc24f37
No related branches found
No related tags found
No related merge requests found
...@@ -104,18 +104,10 @@ class FeedParser { ...@@ -104,18 +104,10 @@ class FeedParser {
$articles = $xpath->query("//atom03:entry"); $articles = $xpath->query("//atom03:entry");
$feed = $this->xpath->query("//atom:feed")->item(0); $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) { foreach ($articles as $article) {
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath, $base)); array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath));
} }
break; break;
case $this::FEED_RSS: case $this::FEED_RSS:
$title = $xpath->query("//channel/title")->item(0); $title = $xpath->query("//channel/title")->item(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment