[AtomFormat] Remove enclosures

This feature was implemented for AtomFormat only and implemented by no
bridge other than DemoBridge.
This commit is contained in:
logmanoriginal 2016-08-08 22:43:28 +02:00
parent bb49aef187
commit 0663c9507f
2 changed files with 1 additions and 12 deletions

View file

@ -36,15 +36,6 @@ class AtomFormat extends FormatAbstract{
// We prevent content from closing the CDATA too early.
$entryContent = is_null($data->content) ? '' : '<![CDATA[' . $this->sanitizeHtml(str_replace(']]>','',$data->content)) . ']]>';
// We generate a list of the enclosure links
$entryEnclosures = "";
foreach($data->enclosures as $enclosure) {
$entryEnclosures .= "<link rel=\"enclosure\" href=\"".$enclosure."\"></link>";
}
$entries .= <<<EOD
<entry>
@ -57,7 +48,6 @@ class AtomFormat extends FormatAbstract{
<id>{$entryUri}</id>
<updated>{$entryTimestamp}</updated>
<content type="html">{$entryContent}</content>
{$entryEnclosures}
</entry>
EOD;