From: Andrew Dolgov Date: Wed, 1 May 2013 17:01:30 +0000 (+0400) Subject: support dc:creator X-Git-Tag: 1.7.9~25^2~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f11015058d6e313d3cabc3d3edc0230a5b6b4c26;p=tt-rss.git support dc:creator --- diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index d2193389..1a9db902 100644 --- a/classes/feeditem/atom.php +++ b/classes/feeditem/atom.php @@ -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; + } + } } ?> diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 7a3b0d34..9e54a9c0 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -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; } + } } ?>