Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
1e83974d
Commit
1e83974d
authored
Aug 06, 2020
by
Kevin Ditscheid
Browse files
[TASK] Cleanup unnecessary variables
parent
731c3f38
Changes
1
Show whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
1e83974d
...
...
@@ -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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment