From 43a752e0786cfe2f65d0b81af3173d826f135cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 22 Feb 2022 13:28:02 +0100 Subject: [PATCH] Fix booking url generator relying on non-existing variable --- .../ext/ep_products/Classes/Utility/BookingUrlUtility.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php b/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php index ad56b665..263062e1 100644 --- a/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php +++ b/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php @@ -151,9 +151,8 @@ class BookingUrlUtility */ protected static function buildUrl(array $query): string { - $pageId = $GLOBALS['TSFE']->id; $baseUrl = GeneralUtility::makeInstance(SiteFinder::class) - ->getSiteByPageId($pageId) + ->getSiteByIdentifier('ep-reisen') ->getBase(); return $baseUrl . '/buchung/maske_buchung.php?' . http_build_query($query, '', '&');