support dc:date elements in rss and atom feeds
This commit is contained in:
parent
67f4fe1780
commit
ce5d234d63
|
@ -16,6 +16,12 @@ class FeedItem_Atom extends FeedItem_Common {
|
|||
if ($updated) {
|
||||
return strtotime($updated->nodeValue);
|
||||
}
|
||||
|
||||
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
|
||||
|
||||
if ($date) {
|
||||
return strtotime($date->nodeValue);
|
||||
}
|
||||
}
|
||||
|
||||
function get_link() {
|
||||
|
|
|
@ -16,6 +16,12 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||
if ($pubDate) {
|
||||
return strtotime($pubDate->nodeValue);
|
||||
}
|
||||
|
||||
$date = $this->xpath->query("dc:date", $this->elem)->item(0);
|
||||
|
||||
if ($date) {
|
||||
return strtotime($date->nodeValue);
|
||||
}
|
||||
}
|
||||
|
||||
function get_link() {
|
||||
|
|
Loading…
Reference in New Issue