Revert some stuff based upon feedback

This commit is contained in:
wn_
2024-12-15 13:39:54 +00:00
parent 57dd754e07
commit 18b17cbc83
5 changed files with 48 additions and 46 deletions

View File

@@ -184,11 +184,10 @@ class FeedItem_Atom extends FeedItem_Common {
$base = $this->xpath->evaluate("string(ancestor-or-self::*[@xml:base][1]/@xml:base)", $link);
if ($link->getAttribute("rel") == "enclosure") {
$enc = new FeedEnclosure(
type: clean($link->getAttribute('type')),
length: clean($link->getAttribute('length')),
link: clean($link->getAttribute('href')),
);
$enc = new FeedEnclosure();
$enc->type = clean($link->getAttribute('type'));
$enc->length = clean($link->getAttribute('length'));
$enc->link = clean($link->getAttribute('href'));
if (!empty($base)) {
$enc->link = UrlHelper::rewrite_relative($base, $enc->link);