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
98b51a00
Commit
98b51a00
authored
Sep 07, 2018
by
Torsten Oppermann
Browse files
[TASK] Respecting objects in all_marker
parent
4e868139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
98b51a00
...
...
@@ -917,13 +917,21 @@ class MailTemplateService {
foreach
(
$markers
as
$key
=>
$value
)
{
if
(
\
is_string
(
$value
))
{
$allMarker
.
=
$key
.
': '
.
$value
.
PHP_EOL
;
$allMarker
.
=
$key
.
': '
.
$value
.
PHP_EOL
;
}
elseif
(
\
is_array
(
$value
))
{
foreach
(
$value
as
$innerKey
=>
$innerValue
)
{
$allMarker
.
=
$key
.
': '
.
$innerValue
.
PHP_EOL
;
$allMarker
.
=
$key
.
': '
.
$innerValue
.
PHP_EOL
;
}
}
elseif
(
\
is_bool
(
$value
))
{
$allMarker
.
=
$key
.
': '
.
$value
.
PHP_EOL
;
if
(
$value
)
{
$allMarker
.
=
$key
.
': TRUE'
.
PHP_EOL
;
}
else
{
$allMarker
.
=
$key
.
': FALSE'
.
PHP_EOL
;
}
}
elseif
(
\
is_object
(
$value
))
{
if
(
method_exists
(
$value
,
'__toString'
))
{
$allMarker
.
=
$key
.
': '
.
$value
->
__toString
()
.
PHP_EOL
;
}
}
}
...
...
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