summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-06 23:38:02 +0300
committerAndrew Dolgov <[email protected]>2015-07-06 23:38:02 +0300
commit7975ace2aaf73bb0b5f57a2d1405be3ed88da797 (patch)
tree70bc6cc4c93224dfc82399e34d87cb23a36e82ff /plugins
parentfd61fd6e7928c6fd88c6027868f096b35216d9fe (diff)
fix previous, oops
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_readability/init.php4
-rw-r--r--plugins/af_redditimgur/init.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php
index 8e47d7640..6cdd28faf 100644
--- a/plugins/af_readability/init.php
+++ b/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")));
}
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index ca451bfcd..711e845bc 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($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")));
}