From: Andrew Dolgov Date: Mon, 6 Jul 2015 20:50:34 +0000 (+0300) Subject: fix previous AGAIN aargh X-Git-Tag: 16.3~247 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f7c0d9fc8fb86951858d99aa3199b60f855a5ee5;p=tt-rss.git fix previous AGAIN aargh --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 711e845b..fe6d3240 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -275,13 +275,13 @@ class Af_RedditImgur extends Plugin { foreach ($entries as $entry) { if ($entry->hasAttribute("href")) { $entry->setAttribute("href", - rewrite_relative_url($content_link, $entry->getAttribute("href"))); + rewrite_relative_url($content_link->getAttribute("href"), $entry->getAttribute("href"))); } if ($entry->hasAttribute("src")) { $entry->setAttribute("src", - rewrite_relative_url($content_link, $entry->getAttribute("src"))); + rewrite_relative_url($content_link->getAttribute("href"), $entry->getAttribute("src"))); }