1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:15:55 +00:00

fix previous, oops

This commit is contained in:
Andrew Dolgov
2015-07-06 23:38:02 +03:00
parent fd61fd6e79
commit 7975ace2aa
2 changed files with 4 additions and 4 deletions

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