summaryrefslogtreecommitdiff
path: root/classes/feedparser.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-01 20:55:08 +0400
committerAndrew Dolgov <[email protected]>2013-05-01 20:55:08 +0400
commitd4992d6b48ed458ae3ff39c5cd5ac19244ccd6a8 (patch)
treefa9dcf17ff825b3304a94aba34dc559c3b45a13d /classes/feedparser.php
parentee78f81ccdcc12055927a708e31ab0a85442b27b (diff)
add support for dc:subject and slash:comments
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r--classes/feedparser.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php
index 8cb736a8b..f61c2a003 100644
--- a/classes/feedparser.php
+++ b/classes/feedparser.php
@@ -29,6 +29,9 @@ class FeedParser {
$xpath->registerNamespace('atom', 'http://www.w3.org/2005/Atom');
$xpath->registerNamespace('media', 'http://search.yahoo.com/mrss/');
$xpath->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
+ $xpath->registerNamespace('slash', 'http://purl.org/rss/1.0/modules/slash/');
+ $xpath->registerNamespace('dc', 'http://purl.org/dc/elements/1.1/');
+
$this->xpath = $xpath;
$root = $xpath->query("(//atom:feed|//channel|//rdf:rdf|//rdf:RDF)")->item(0);