29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-30 17:13:41 +00:00

[4.0] Correcting articles blog badge date (#31689)

This commit is contained in:
infograf768 2020-12-18 03:46:12 +01:00 committed by GitHub
parent 858734d592
commit b3b101cdb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,11 +40,11 @@ $currentDate = Factory::getDate()->format('Y-m-d H:i:s');
<span class="badge badge-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span>
<?php endif; ?>
<?php if (strtotime($displayData->publish_up) > $currentDate) : ?>
<?php if ($displayData->publish_up > $currentDate) : ?>
<span class="badge badge-warning"><?php echo Text::_('JNOTPUBLISHEDYET'); ?></span>
<?php endif; ?>
<?php if ($displayData->publish_down !== null && strtotime($displayData->publish_down) < strtotime(Factory::getDate())) : ?>
<?php if ($displayData->publish_down !== null && $displayData->publish_down < $currentDate) : ?>
<span class="badge badge-warning"><?php echo Text::_('JEXPIRED'); ?></span>
<?php endif; ?>
</div>