From f7c0d9fc8fb86951858d99aa3199b60f855a5ee5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 6 Jul 2015 23:50:34 +0300 Subject: [PATCH] fix previous AGAIN aargh --- plugins/af_redditimgur/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"))); }