feeditem_rss: use guid element
This commit is contained in:
parent
3c8060aca0
commit
b09a4cdccc
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue