From f3eefab475ec49446ab49c9bf3224558852e1f4e Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 23:28:50 +0200 Subject: [PATCH] [MrssFormat] Remove media:title and media:content Both items only make sense in combination with media:content. This subsequently eradicates $item->thumbnailUri. --- CREATE_BRIDGE.md | 2 -- formats/MrssFormat.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index 791a28fb..a7a0f455 100644 --- a/CREATE_BRIDGE.md +++ b/CREATE_BRIDGE.md @@ -112,7 +112,6 @@ The `Item` class is used to store parameter that are collected in the [`collectD ```PHP $item->uri // URI to reach the subject ("http://...") -$item->thumbnailUri // URI for the thumbnail ("http://...") $item->title // Title of the item $item->name // Name of the item $item->timestamp // Timestamp of the item in numeric format (use strtotime) @@ -138,7 +137,6 @@ The following list provides an overview of the parameters used by the other form Parameter | ATOM | HTML | (M)RSS ----------|------|------|------- `uri`|X|X|X -`thumbnailUri`|||X `title`|X|X|X `name`|X|| `timestamp`|X|X|X diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index a5e6cd20..d80b267f 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -25,7 +25,6 @@ class MrssFormat extends FormatAbstract{ $itemTitle = strip_tags(is_null($data->title) ? '' : $data->title); $itemUri = is_null($data->uri) ? '' : $data->uri; $itemAuthor = is_null($data->author) ? '' : $data->author; - $itemThumbnailUri = is_null($data->thumbnailUri) ? '' : $data->thumbnailUri; $itemTimestamp = is_null($data->timestamp) ? '' : date(DATE_RFC2822, $data->timestamp); // We prevent content from closing the CDATA too early. $itemContent = is_null($data->content) ? '' : htmlspecialchars($this->sanitizeHtml(str_replace(']]>','',$data->content))); @@ -39,8 +38,6 @@ class MrssFormat extends FormatAbstract{ {$itemTimestamp} {$itemContent} {$itemAuthor} - {$itemTitle} - EOD;