diff --git a/administrator/modules/mod_feed/tmpl/default.php b/administrator/modules/mod_feed/tmpl/default.php
index d52b5708808d2..6ae383d5873c7 100644
--- a/administrator/modules/mod_feed/tmpl/default.php
+++ b/administrator/modules/mod_feed/tmpl/default.php
@@ -49,9 +49,6 @@
}
if ($feed != false) :
- // Image handling
- $iUrl = isset($feed->image) ? $feed->image : null;
- $iTitle = isset($feed->imagetitle) ? $feed->imagetitle : null;
?>
- get('rssimage', 1) && $iUrl) : ?>
-
+ get('rssimage', 1) && $feed->image) : ?>
+
diff --git a/components/com_newsfeeds/views/newsfeed/tmpl/default.php b/components/com_newsfeeds/views/newsfeed/tmpl/default.php
index fca1e84eacfef..e9b04a47abfe2 100644
--- a/components/com_newsfeeds/views/newsfeed/tmpl/default.php
+++ b/components/com_newsfeeds/views/newsfeed/tmpl/default.php
@@ -79,9 +79,9 @@
- rssDoc->image, $this->rssDoc->imagetitle) && $this->params->get('show_feed_image')) : ?>
+ rssDoc->image && $this->params->get('show_feed_image')) : ?>
-
+
diff --git a/libraries/src/Feed/Feed.php b/libraries/src/Feed/Feed.php
index 341e35a10d768..5f36a22d87a5a 100644
--- a/libraries/src/Feed/Feed.php
+++ b/libraries/src/Feed/Feed.php
@@ -15,17 +15,17 @@
/**
* Class to encapsulate a feed for the Joomla Platform.
*
- * @property FeedPerson $author Person responsible for feed content.
- * @property array $categories Categories to which the feed belongs.
- * @property array $contributors People who contributed to the feed content.
- * @property string $copyright Information about rights, e.g. copyrights, held in and over the feed.
- * @property string $description A phrase or sentence describing the feed.
- * @property string $generator A string indicating the program used to generate the feed.
- * @property string $image Specifies a GIF, JPEG or PNG image that should be displayed with the feed.
- * @property Date $publishedDate The publication date for the feed content.
- * @property string $title A human readable title for the feed.
- * @property Date $updatedDate The last time the content of the feed changed.
- * @property string $uri Universal, permanent identifier for the feed.
+ * @property FeedPerson $author Person responsible for feed content.
+ * @property array $categories Categories to which the feed belongs.
+ * @property array $contributors People who contributed to the feed content.
+ * @property string $copyright Information about rights, e.g. copyrights, held in and over the feed.
+ * @property string $description A phrase or sentence describing the feed.
+ * @property string $generator A string indicating the program used to generate the feed.
+ * @property FeedLink|null $image FeedLink object containing feed image properties.
+ * @property Date $publishedDate The publication date for the feed content.
+ * @property string $title A human readable title for the feed.
+ * @property Date $updatedDate The last time the content of the feed changed.
+ * @property string $uri Universal, permanent identifier for the feed.
*
* @since 3.1.4
*/
diff --git a/modules/mod_feed/tmpl/default.php b/modules/mod_feed/tmpl/default.php
index bc24d9e7cfda0..ddd30ed5bb836 100644
--- a/modules/mod_feed/tmpl/default.php
+++ b/modules/mod_feed/tmpl/default.php
@@ -54,9 +54,6 @@
if ($feed !== false)
{
- // Image handling
- $iUrl = isset($feed->image) ? $feed->image : null;
- $iTitle = isset($feed->imagetitle) ? $feed->imagetitle : null;
?>
get('rssimage', 1)) :
+ if ($feed->image && $params->get('rssimage', 1)) :
?>
-
+