Skip to content

Commit

Permalink
Bugfix fix renderer in BE context
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Jan 20, 2025
1 parent c2c6915 commit fe580a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/Twig/RendererTwig.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ public function __construct(
*/
protected $fallbackTemplate = '',
) {
if (isset($GLOBALS['TYPO3_REQUEST']->getAttribute('frontend.typoscript')->getSetupArray()['lib.']['tx_t3twig.'])) {
$this->conf = $GLOBALS['TYPO3_REQUEST']->getAttribute('frontend.typoscript')->getSetupArray()['lib.']['tx_t3twig.'];
}
$this->conf = $GLOBALS['TYPO3_REQUEST']?->getAttribute('frontend.typoscript')?->getSetupArray()['lib.']['tx_t3twig.'] ?? [];
}

/**
Expand Down

0 comments on commit fe580a7

Please sign in to comment.