summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-06 23:50:34 +0300
committerAndrew Dolgov <[email protected]>2015-07-06 23:50:34 +0300
commitf7c0d9fc8fb86951858d99aa3199b60f855a5ee5 (patch)
tree1f58541d3d559091bb208f781e525efd30801745 /plugins
parent7975ace2aaf73bb0b5f57a2d1405be3ed88da797 (diff)
fix previous AGAIN aargh
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_redditimgur/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index 711e845bc..fe6d32400 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")));
}