Commit 1bbcdbdf authored by Ben Bradshaw's avatar Ben Bradshaw
Browse files

[#3347] Patching XML Feed Reader 1.0.3 - adding <link> fix

previous commit with this fix: e662d5d9
(cherry picked from commit e396dee3)
parent 5afa4129
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment