Skip to content
Snippets Groups Projects
Commit 30ce9360 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Code cleanups

parent b648d123
No related branches found
Tags 6.2.2
1 merge request!2Feature multiclient
......@@ -80,7 +80,7 @@ class MailController extends ActionController {
$selectedTemplate = NULL, $selectedExtension = NULL, $selectedLanguageLeft = NULL,
$selectedLanguageRight = NULL
) {
$siteRootId = BackendService::getSiteRoot((int) GeneralUtility::_GP('id'));
$siteRootId = BackendService::getSiteRoot();
if (!($this->session instanceof PhpSession)) {
$this->session = $this->objectManager->get(PhpSession::class);
......@@ -271,8 +271,7 @@ class MailController extends ActionController {
$selectedExtension, $selectedTemplate, $selectedLanguage, $selectedContent, $selectedSubject,
$selectedFromName, $selectedFromMail, $selectedCc, $selectedBcc, $selectedReplyTo
) {
$pageUid = BackendService::getSiteRoot((int) GeneralUtility::_GP('id'));
$siteRootId = BackendService::getSiteRoot($pageUid);
$siteRootId = BackendService::getSiteRoot();
/** @var Template $template */
$template = $this->templateRepository->findOneByTemplate(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment