feeditem_rss: use guid element

This commit is contained in:
Andrew Dolgov 2013-05-01 19:12:32 +04:00
parent 3c8060aca0
commit b09a4cdccc

View file

@ -7,8 +7,14 @@ class FeedItem_RSS {
}
function get_id() {
$id = $this->elem->getElementsByTagName("guid")->item(0);
if ($id) {
return $id->nodeValue;
} else {
return $this->get_link();
}
}
function get_date() {
$pubDate = $this->elem->getElementsByTagName("pubDate")->item(0);