|
@@ -36,9 +36,7 @@ class CurrentViewHelper extends OtAbstractViewHelper
|
|
|
Closure $renderChildrenClosure,
|
|
Closure $renderChildrenClosure,
|
|
|
RenderingContextInterface $renderingContext
|
|
RenderingContextInterface $renderingContext
|
|
|
) {
|
|
) {
|
|
|
- $pageRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(OtWebsiteRepository::class);
|
|
|
|
|
- $website = $pageRepository->getCurrentWebsiteFromFEGlobals();
|
|
|
|
|
-
|
|
|
|
|
|
|
+ $website = $GLOBALS['TYPO3_REQUEST']->getAttribute('ot_website');
|
|
|
$templateRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(TemplateRepository::class);
|
|
$templateRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(TemplateRepository::class);
|
|
|
return $templateRepository->getTemplate($website);
|
|
return $templateRepository->getTemplate($website);
|
|
|
}
|
|
}
|