Skip to content

Commit

Permalink
Merge pull request #19 from saerdnaer/chore/rss-enclosure
Browse files Browse the repository at this point in the history
chore: add missing enclosure tag rendering code to RSS creator
  • Loading branch information
flack authored May 3, 2024
2 parents c55f908 + c656647 commit 98bbc60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Creator/RSSCreator091.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public function createFeed()
if ($this->items[$i]->thumb != "") {
$feed .= " <g:image_link>".htmlspecialchars($this->items[$i]->thumb)."</g:image_link>\n";
}
if ($this->items[$i]->enclosure != null) {
$feed .= " <enclosure url=\"".$this->items[$i]->enclosure->url."\" type=\"".$this->items[$i]->enclosure->type."\" length=\"".$this->items[$i]->enclosure->length."\" />";
}
$feed .= $this->_createAdditionalElements($this->items[$i]->additionalElements, " ");
$feed .= " </item>\n";
}
Expand Down

0 comments on commit 98bbc60

Please sign in to comment.