fix previous AGAIN aargh
This commit is contained in:
parent
7975ace2aa
commit
f7c0d9fc8f
1 changed files with 2 additions and 2 deletions
|
@ -275,13 +275,13 @@ class Af_RedditImgur extends Plugin {
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
if ($entry->hasAttribute("href")) {
|
if ($entry->hasAttribute("href")) {
|
||||||
$entry->setAttribute("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")) {
|
if ($entry->hasAttribute("src")) {
|
||||||
$entry->setAttribute("src",
|
$entry->setAttribute("src",
|
||||||
rewrite_relative_url($content_link, $entry->getAttribute("src")));
|
rewrite_relative_url($content_link->getAttribute("href"), $entry->getAttribute("src")));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue