From c656647c8b2871d0965f28c5fc00c688ab42b133 Mon Sep 17 00:00:00 2001 From: Andreas Hubel <40266+saerdnaer@users.noreply.github.com> Date: Fri, 3 May 2024 01:17:00 +0200 Subject: [PATCH] chore: add missing enclosure tag rendering code to RSS creator --- lib/Creator/RSSCreator091.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Creator/RSSCreator091.php b/lib/Creator/RSSCreator091.php index fa76280..d41d7c6 100644 --- a/lib/Creator/RSSCreator091.php +++ b/lib/Creator/RSSCreator091.php @@ -172,6 +172,9 @@ public function createFeed() if ($this->items[$i]->thumb != "") { $feed .= " ".htmlspecialchars($this->items[$i]->thumb)."\n"; } + if ($this->items[$i]->enclosure != null) { + $feed .= " items[$i]->enclosure->url."\" type=\"".$this->items[$i]->enclosure->type."\" length=\"".$this->items[$i]->enclosure->length."\" />"; + } $feed .= $this->_createAdditionalElements($this->items[$i]->additionalElements, " "); $feed .= " \n"; }