]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix previous AGAIN aargh
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 6 Jul 2015 20:50:34 +0000 (23:50 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 6 Jul 2015 20:50:34 +0000 (23:50 +0300)
plugins/af_redditimgur/init.php

index 711e845bcd91a0b3197a511dd756f795d51c4954..fe6d324008223a7b2e8cfe46ce20ea5bea4719f3 100644 (file)
@@ -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")));
 
                                                                                }