From: Andrew Dolgov Date: Mon, 6 Jul 2015 20:38:02 +0000 (+0300) Subject: fix previous, oops X-Git-Tag: 16.3~248 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7975ace2aaf73bb0b5f57a2d1405be3ed88da797;p=tt-rss.git fix previous, oops --- diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 8e47d764..6cdd28fa 100644 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -112,13 +112,13 @@ class Af_Readability extends Plugin { foreach ($entries as $entry) { if ($entry->hasAttribute("href")) { $entry->setAttribute("href", - rewrite_relative_url($entry->getAttribute("href"), $article["link"])); + rewrite_relative_url($article["link"], $entry->getAttribute("href"))); } if ($entry->hasAttribute("src")) { $entry->setAttribute("src", - rewrite_relative_url($entry->getAttribute("src"), $article["link"])); + rewrite_relative_url($article["link"], $entry->getAttribute("src"))); } diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index ca451bfc..711e845b 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($entry->getAttribute("href"), $content_link)); + rewrite_relative_url($content_link, $entry->getAttribute("href"))); } if ($entry->hasAttribute("src")) { $entry->setAttribute("src", - rewrite_relative_url($entry->getAttribute("src"), $content_link)); + rewrite_relative_url($content_link, $entry->getAttribute("src"))); }