Skip to content

Commit

Permalink
[TASK] Avoid protected-on-v10 method to get TSFE
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jul 22, 2023
1 parent 0fd7747 commit 929fac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Content/InfoViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function render()
if (!empty($cObj->data)) {
$record = $cObj->data;
} else {
$tsfe = $cObj->getTypoScriptFrontendController();
$tsfe = $GLOBALS['TSFE'] ?? null;
if (!$tsfe instanceof TypoScriptFrontendController) {
throw new Exception(
'v:content.info must have contentUid argument when no TypoScriptFrontendController exists',
Expand Down

0 comments on commit 929fac4

Please sign in to comment.