Skip to content

Commit

Permalink
chore: fix ecs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoIT committed Oct 18, 2024
1 parent 7cc75bb commit a3155f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hook/ParseFrontendTemplateHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ private function processEventTemplate(CalendarEventsModel $objEvent, FrontendTem
$version = (method_exists(ContaoCoreBundle::class, 'getVersion') ? ContaoCoreBundle::getVersion() : VERSION); // @phpstan-ignore-line

if (version_compare($version, '5.0', '<')) {
$urlParameter = sprintf("day=%s&times=%s", date('Ymd', $intStartTime), $intStartTime.','.$intEndTime);
$jsonLd['url'] .= (str_contains($jsonLd['url'], '?') ? '&' : '?').$urlParameter;
$urlParameter = \sprintf('day=%s&times=%s', date('Ymd', $intStartTime), $intStartTime.','.$intEndTime);
$jsonLd['url'] .= (str_contains((string) $jsonLd['url'], '?') ? '&' : '?').$urlParameter;
} else {
$urlGenerator = System::getContainer()->get('contao.routing.content_url_generator');

Expand Down

0 comments on commit a3155f0

Please sign in to comment.