diff --git a/src/EventListener/DataContainer/MissingLanguageIconListener.php b/src/EventListener/DataContainer/MissingLanguageIconListener.php index 7e1c1f9..2995d79 100644 --- a/src/EventListener/DataContainer/MissingLanguageIconListener.php +++ b/src/EventListener/DataContainer/MissingLanguageIconListener.php @@ -7,6 +7,8 @@ use Contao\ArticleModel; use Contao\CalendarEventsModel; use Contao\CalendarModel; +use Contao\Config; +use Contao\Date; use Contao\FaqCategoryModel; use Contao\FaqModel; use Contao\Input; @@ -117,6 +119,10 @@ public function onNewsChildRecords(array $args, $previousResult = null) $row = $args[0]; $label = (string) $previousResult; + if (empty($label)) { + $label = '
' . $row['headline'] . ' [' . Date::parse(Config::get('datimFormat'), $row['date']) . ']
'; + } + $archive = NewsArchiveModel::findByPk($row['pid']); if (