mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-27 03:40:13 +02:00
fix: ArgumentCountError: DOMDocument::getElementsByTagName() expects exactly 1 argument, 2 given, #3406 (#3407)
This commit is contained in:
12
lib/html.php
12
lib/html.php
@@ -187,13 +187,13 @@ function defaultLinkTo($dom, $url)
|
||||
|
||||
// Use long method names for compatibility with simple_html_dom and DOMDocument
|
||||
|
||||
foreach ($dom->getElementsByTagName('img', null) as $image) {
|
||||
$image->setAttribute('src', urljoin($url, $image->getAttribute('src')));
|
||||
}
|
||||
// foreach ($dom->getElementsByTagName('img', null) as $image) {
|
||||
// $image->setAttribute('src', urljoin($url, $image->getAttribute('src')));
|
||||
// }
|
||||
|
||||
foreach ($dom->getElementsByTagName('a', null) as $anchor) {
|
||||
$anchor->setAttribute('href', urljoin($url, $anchor->getAttribute('href')));
|
||||
}
|
||||
// foreach ($dom->getElementsByTagName('a', null) as $anchor) {
|
||||
// $anchor->setAttribute('href', urljoin($url, $anchor->getAttribute('href')));
|
||||
// }
|
||||
|
||||
// Will never be true for DOMDocument
|
||||
if ($string_convert) {
|
||||
|
Reference in New Issue
Block a user