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
48e761ea
Commit
48e761ea
authored
Sep 13, 2018
by
Torsten Oppermann
Browse files
[TASK] Fix bug with default html template not found
parent
643dfa74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
48e761ea
...
...
@@ -308,7 +308,11 @@ class MailTemplateService {
$defaultTemplateContent
=
file_get_contents
(
$defaultTemplateFile
);
}
else
{
// use configured default html template
$defaultTemplateFile
=
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'MAIL'
][
'defaultHtmlTemplate'
];
/** @var TypoScriptSettingsService $typoScriptSettingsService */
$typoScriptSettingsService
=
$this
->
objectManager
->
get
(
TypoScriptSettingsService
::
class
);
$tsSettings
=
$typoScriptSettingsService
->
getSettings
(
0
,
'tx_sgmail'
);
$defaultTemplateFile
=
GeneralUtility
::
getFileAbsFileName
(
$tsSettings
[
'mail'
][
'defaultHtmlTemplate'
]);
if
(
file_exists
(
$defaultTemplateFile
))
{
$defaultTemplateContent
=
file_get_contents
(
$defaultTemplateFile
);
}
else
{
...
...
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