From 985fcf8f07e4eaae8030dbc754a089fd2e679e26 Mon Sep 17 00:00:00 2001 From: Philipp Seibt Date: Tue, 5 Nov 2024 15:57:49 +0100 Subject: [PATCH] fix ecs --- src/EventListener/DataContainer/TimelineElementListeners.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/DataContainer/TimelineElementListeners.php b/src/EventListener/DataContainer/TimelineElementListeners.php index db1a563..85f35f7 100644 --- a/src/EventListener/DataContainer/TimelineElementListeners.php +++ b/src/EventListener/DataContainer/TimelineElementListeners.php @@ -10,7 +10,7 @@ class TimelineElementListeners #[AsCallback('tl_content', 'fields.multiSRC.load')] public function setMultiSRCFlags(mixed $varValue, DataContainer $dc): mixed { - if ($dc->activeRecord && $dc->activeRecord->type === 'timelineSliderElement') { + if ($dc->activeRecord && 'timelineSliderElement' === $dc->activeRecord->type) { $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['isGallery'] = true; } return $varValue;