From 7975ace2aaf73bb0b5f57a2d1405be3ed88da797 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 6 Jul 2015 23:38:02 +0300 Subject: [PATCH] fix previous, oops --- plugins/af_readability/init.php | 4 ++-- plugins/af_redditimgur/init.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"))); } -- 2.39.5