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
47aa0fe3
Commit
47aa0fe3
authored
Apr 09, 2018
by
Paul Ilea
Browse files
[BUGFIX] Trim default register template subject values
parent
76b4ac84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
47aa0fe3
...
...
@@ -328,14 +328,15 @@ class MailTemplateService {
if
(
NULL
===
$defaultTemplateContent
)
{
$emailView
->
setTemplateSource
(
$template
->
getContent
());
$subject
=
$template
->
getSubject
();
$subject
=
trim
(
$template
->
getSubject
()
)
;
}
else
{
$emailView
->
setTemplateSource
(
$defaultTemplateContent
);
$subject
=
self
::
getRegisterArray
()[
$this
->
extensionKey
][
$this
->
templateName
][
'subject'
];
if
(
is_array
(
$subject
))
{
$subject
=
self
::
getRegisterArray
(
)[
$this
->
extensionKey
][
$this
->
templateName
][
'subject'
][
$this
->
language
];
$subject
=
trim
(
self
::
getRegisterArray
()[
$this
->
extensionKey
][
$this
->
templateName
][
'subject'
][
$this
->
language
]
);
}
}
...
...
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