Commit 1e83974d authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Cleanup unnecessary variables

parent 731c3f38
...@@ -576,9 +576,7 @@ class MailTemplateService { ...@@ -576,9 +576,7 @@ class MailTemplateService {
*/ */
protected function getPageUid(): int { protected function getPageUid(): int {
if (TYPO3_MODE === 'FE') { if (TYPO3_MODE === 'FE') {
/** @var TypoScriptFrontendController $typoscriptFrontendController */ $pageUid = (int) $GLOBALS['TSFE']->id;
$typoscriptFrontendController = $GLOBALS['TSFE'];
$pageUid = (int) $typoscriptFrontendController->id;
} else { } else {
$pageUid = (int) GeneralUtility::_GP('id'); $pageUid = (int) GeneralUtility::_GP('id');
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment