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

[TASK] Cleanup unnecessary variables

parent 731c3f38
......@@ -576,9 +576,7 @@ class MailTemplateService {
*/
protected function getPageUid(): int {
if (TYPO3_MODE === 'FE') {
/** @var TypoScriptFrontendController $typoscriptFrontendController */
$typoscriptFrontendController = $GLOBALS['TSFE'];
$pageUid = (int) $typoscriptFrontendController->id;
$pageUid = (int) $GLOBALS['TSFE']->id;
} else {
$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