support dc:creator

This commit is contained in:
Andrew Dolgov 2013-05-01 21:01:30 +04:00
parent d4992d6b48
commit f11015058d
2 changed files with 14 additions and 1 deletions

View File

@ -138,6 +138,13 @@ class FeedItem_Atom {
if ($email) return $email->nodeValue;
}
$author = $this->xpath->query("dc:creator", $this->elem)->item(0);
if ($author) {
return $author->nodeValue;
}
}
}
?>

View File

@ -129,8 +129,14 @@ class FeedItem_RSS {
$email = $author->getElementsByTagName("email")->item(0);
if ($email) return $email->nodeValue;
}
$author = $this->xpath->query("dc:creator", $this->elem)->item(0);
if ($author) {
return $author->nodeValue;
}
}
}
}
?>