]> git.wh0rd.org Git - tt-rss.git/commitdiff
support dc:creator
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 17:01:30 +0000 (21:01 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 17:01:30 +0000 (21:01 +0400)
classes/feeditem/atom.php
classes/feeditem/rss.php

index d2193389731a3e13b766ad008dc25584c74ece8f..1a9db902065c3f50a66de975822a649466dd2b26 100644 (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;
+               }
+
        }
 }
 ?>
index 7a3b0d342564ed0d8d89abb4e09d02b765062746..9e54a9c092d726799573421e48e8b7a0718c4519 100644 (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;
                }
+
        }
 }
 ?>