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
b0e57679
Commit
b0e57679
authored
Sep 30, 2016
by
Torsten Oppermann
Browse files
[TASK] Fallback to english template if no other exists
parent
87f375ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
b0e57679
...
...
@@ -202,6 +202,12 @@ class MailTemplateService {
$this
->
extensionKey
,
$this
->
templateName
,
$this
->
language
)
->
getFirst
();
// If there is no template for this language, use the english template
if
(
$template
===
NULL
&&
$this
->
language
!==
'en'
)
{
$this
->
setLanguage
(
'en'
);
$this
->
sendEmail
();
}
if
(
$template
===
NULL
)
{
return
FALSE
;
}
...
...
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