Skip to content
GitLab
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
1adf4132
Commit
1adf4132
authored
Sep 05, 2018
by
Torsten Oppermann
Browse files
[TASK] Working on automatic registration
parent
1067c060
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
1adf4132
...
...
@@ -834,8 +834,8 @@ class MailTemplateService {
$configArray
=
(
include
$extensionConfigDirectory
.
'/'
.
self
::
REGISTER_FILE
);
if
(
$configArray
)
{
foreach
(
$configArray
as
$config
)
{
$registerArray
=
self
::
writeRegisterArrayEntry
(
$registerArray
,
$config
[
'extension
_k
ey'
],
$config
[
'extension
_k
ey'
],
$config
[
'template
_k
ey'
],
$config
);
foreach
(
$configArray
as
$key
=>
$config
)
{
$registerArray
=
self
::
writeRegisterArrayEntry
(
$registerArray
,
$config
[
'extension
K
ey'
],
$config
[
'extension
K
ey'
],
$config
[
'template
K
ey'
],
$config
);
}
}
...
...
@@ -858,7 +858,7 @@ class MailTemplateService {
array
$registerArray
,
$extensionName
,
$extensionKey
,
$templateKey
,
array
$configArray
)
{
// transform template directory name: your_templates => YourTemplates/
$templateDirectoryParts
=
GeneralUtility
::
trimExplode
(
'_'
,
$
configArray
[
'
template
_key'
]
);
$templateDirectoryParts
=
GeneralUtility
::
trimExplode
(
'_'
,
$template
Key
);
$templateDirectory
=
''
;
foreach
(
$templateDirectoryParts
as
$part
)
{
$templateDirectory
.
=
ucfirst
(
$part
);
...
...
@@ -869,7 +869,7 @@ class MailTemplateService {
)
.
self
::
DEFAULT_TEMPLATE_PATH
.
$templateDirectory
;
if
(
$configArray
[
'template_path'
])
{
$templatePath
=
$configArray
[
'
template
_k
ey
'
];
$templatePath
=
$configArray
[
$
template
K
ey
];
}
$description
=
$configArray
[
'description'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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