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
No related tags found
1 merge request!2Feature multiclient
...@@ -80,7 +80,7 @@ class MailController extends ActionController { ...@@ -80,7 +80,7 @@ class MailController extends ActionController {
$selectedTemplate = NULL, $selectedExtension = NULL, $selectedLanguageLeft = NULL, $selectedTemplate = NULL, $selectedExtension = NULL, $selectedLanguageLeft = NULL,
$selectedLanguageRight = NULL $selectedLanguageRight = NULL
) { ) {
$siteRootId = BackendService::getSiteRoot((int) GeneralUtility::_GP('id')); $siteRootId = BackendService::getSiteRoot();
if (!($this->session instanceof PhpSession)) { if (!($this->session instanceof PhpSession)) {
$this->session = $this->objectManager->get(PhpSession::class); $this->session = $this->objectManager->get(PhpSession::class);
...@@ -271,8 +271,7 @@ class MailController extends ActionController { ...@@ -271,8 +271,7 @@ class MailController extends ActionController {
$selectedExtension, $selectedTemplate, $selectedLanguage, $selectedContent, $selectedSubject, $selectedExtension, $selectedTemplate, $selectedLanguage, $selectedContent, $selectedSubject,
$selectedFromName, $selectedFromMail, $selectedCc, $selectedBcc, $selectedReplyTo $selectedFromName, $selectedFromMail, $selectedCc, $selectedBcc, $selectedReplyTo
) { ) {
$pageUid = BackendService::getSiteRoot((int) GeneralUtility::_GP('id')); $siteRootId = BackendService::getSiteRoot();
$siteRootId = BackendService::getSiteRoot($pageUid);
/** @var Template $template */ /** @var Template $template */
$template = $this->templateRepository->findOneByTemplate( $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