Initial functional version of feed subscription plugin, currently supporting only PuSH-enabled feeds.

This commit is contained in:
Brion Vibber
2009-11-19 20:55:38 -08:00
parent dc90e90fd2
commit dd36c2de23
51 changed files with 6442 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/htdocs/lib/pear/XML/Feed/Parser/RSS2.php b/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
index c5d79d1..308a4ab 100644
--- a/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
+++ b/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
@@ -321,7 +321,8 @@ class XML_Feed_Parser_RSS2 extends XML_Feed_Parser_Type
*/
function getLink($offset, $attribute = 'href', $params = array())
{
- $links = $this->model->getElementsByTagName('link');
+ $xPath = new DOMXPath($this->model);
+ $links = $xPath->query('//link');
if ($links->length <= $offset) {
return false;