summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.php b/init.php
index ed71492..0414623 100755
--- a/init.php
+++ b/init.php
@@ -171,7 +171,17 @@ class Reddit_Delay extends Plugin {
if ($doc->loadXML($feed_data)) {
$xpath = new DOMXPath($doc);
+
+ // refs. FeedParser->init()
+ // some of those like dc: are needed for timestamps
$xpath->registerNamespace('atom', 'http://www.w3.org/2005/Atom');
+ $xpath->registerNamespace('atom03', 'http://purl.org/atom/ns#');
+ $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/');
+ $xpath->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/');
+ $xpath->registerNamespace('thread', 'http://purl.org/syndication/thread/1.0');
$entries = $xpath->query("//atom:entry|//channel/item");