mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 01:55:27 +03:00
fix: ArgumentCountError: DOMDocument::getElementsByTagName() expects exactly 1 argument, 2 given, #3406 (#3407)
This commit is contained in:
parent
b5dbec4cc1
commit
f803ffa79a
1 changed files with 6 additions and 6 deletions
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) {
|
||||
|
|
Loading…
Reference in a new issue