Browse Source

fix previous, oops

Andrew Dolgov 9 years ago
parent
commit
7975ace2aa
2 changed files with 4 additions and 4 deletions
  1. 2 2
      plugins/af_readability/init.php
  2. 2 2
      plugins/af_redditimgur/init.php

+ 2 - 2
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")));
 
 					}
 

+ 2 - 2
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")));
 
 										}