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

index 8e47d7640729286ec3def39d7246106a8b379f16..6cdd28fafe0464ee9b63c4915ae61a10dc7b1c7d 100644 (file)
@@ -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")));
 
                                        }
 
index ca451bfcdb653a83417167f79cdfe1832bcb32ec..711e845bcd91a0b3197a511dd756f795d51c4954 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($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")));
 
                                                                                }