[4] Module 'Feed Display': deprecated Notice (#42803)

* backport to 4.4.

* backport to 4.4

* fix4ceford

* adminmodule

---------
This commit is contained in:
Nicola Galgano 2024-02-22 15:17:20 +01:00 committed by GitHub
parent 6ab1334364
commit 8ea73559b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ if (!empty($feed) && is_string($feed)) {
</h2>
<?php endif;
// Feed date
if ($params->get('rssdate', 1)) : ?>
if ($params->get('rssdate', 1) && ($feed->publishedDate !== null)) : ?>
<h3>
<?php echo HTMLHelper::_('date', $feed->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
</h3>
@ -93,7 +93,7 @@ if (!empty($feed) && is_string($feed)) {
<h5 class="feed-link"><?php echo trim($feed[$i]->title); ?></h5>
<?php endif; ?>
<?php if ($params->get('rssitemdate', 0)) : ?>
<?php if ($params->get('rssitemdate', 0) && $feed[$i]->publishedDate !== null) : ?>
<div class="feed-item-date">
<?php echo HTMLHelper::_('date', $feed[$i]->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
</div>

View File

@ -59,7 +59,7 @@ if (!empty($feed) && is_string($feed)) {
<?php
}
// Feed date
if ($params->get('rssdate', 1)) : ?>
if ($params->get('rssdate', 1) && ($feed->publishedDate !== null)) : ?>
<h3>
<?php echo HTMLHelper::_('date', $feed->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
</h3>
@ -95,7 +95,7 @@ if (!empty($feed) && is_string($feed)) {
<span class="feed-link"><?php echo trim($feed[$i]->title); ?></span>
<?php endif; ?>
<?php if ($params->get('rssitemdate', 0)) : ?>
<?php if ($params->get('rssitemdate', 0) && $feed[$i]->publishedDate !== null) : ?>
<div class="feed-item-date">
<?php echo HTMLHelper::_('date', $feed[$i]->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
</div>