Skip to content

Commit

Permalink
[BUGFIX] improve & simplify check for headless (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoldanski authored Nov 15, 2022
1 parent e3f992b commit 0b37759
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/XClass/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ private function isHeadlessEnabled(): bool
{
$typoScriptSetup = $GLOBALS['TSFE'] instanceof TypoScriptFrontendController ? $GLOBALS['TSFE']->tmpl->setup : [];

return isset($typoScriptSetup['plugin.']['tx_headless.']['staticTemplate'])
|| (bool)$typoScriptSetup['plugin.']['tx_headless.']['staticTemplate'] === true;
return (bool)($typoScriptSetup['plugin.']['tx_headless.']['staticTemplate'] ?? false);
}
}

0 comments on commit 0b37759

Please sign in to comment.