Skip to content

Commit 8ea7355

Browse files
authored
[4] Module 'Feed Display': deprecated Notice (#42803)
* backport to 4.4. * backport to 4.4 * fix4ceford * adminmodule ---------
1 parent 6ab1334 commit 8ea7355

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

administrator/modules/mod_feed/tmpl/default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</h2>
5757
<?php endif;
5858
// Feed date
59-
if ($params->get('rssdate', 1)) : ?>
59+
if ($params->get('rssdate', 1) && ($feed->publishedDate !== null)) : ?>
6060
<h3>
6161
<?php echo HTMLHelper::_('date', $feed->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
6262
</h3>
@@ -93,7 +93,7 @@
9393
<h5 class="feed-link"><?php echo trim($feed[$i]->title); ?></h5>
9494
<?php endif; ?>
9595

96-
<?php if ($params->get('rssitemdate', 0)) : ?>
96+
<?php if ($params->get('rssitemdate', 0) && $feed[$i]->publishedDate !== null) : ?>
9797
<div class="feed-item-date">
9898
<?php echo HTMLHelper::_('date', $feed[$i]->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
9999
</div>

modules/mod_feed/tmpl/default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<?php
6060
}
6161
// Feed date
62-
if ($params->get('rssdate', 1)) : ?>
62+
if ($params->get('rssdate', 1) && ($feed->publishedDate !== null)) : ?>
6363
<h3>
6464
<?php echo HTMLHelper::_('date', $feed->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
6565
</h3>
@@ -95,7 +95,7 @@
9595
<span class="feed-link"><?php echo trim($feed[$i]->title); ?></span>
9696
<?php endif; ?>
9797

98-
<?php if ($params->get('rssitemdate', 0)) : ?>
98+
<?php if ($params->get('rssitemdate', 0) && $feed[$i]->publishedDate !== null) : ?>
9999
<div class="feed-item-date">
100100
<?php echo HTMLHelper::_('date', $feed[$i]->publishedDate, Text::_('DATE_FORMAT_LC3')); ?>
101101
</div>

0 commit comments

Comments
 (0)