[TYPO3-core] RFC #11154: calls to deprecated function makeInstanceClassName in core
Steffen Kamper
info at sk-typo3.de
Sun May 24 13:46:15 CEST 2009
Hi Franz,
i have problems with the or-operator. It should behave this way:
config.incT3Lib_htmlmail = 1:
send HTML if isHTMLContent === true, otherwise send plain with strip_tags
config.incT3Lib_htmlmail = 0 or not set:
send plain always
With your "or" isHTMLContent is first priority
So the check should be:
$HTMLallowed =
isset($GLOBALS['TSFE']->config['config']['incT3Lib_htmlmail']) ?
intval($GLOBALS['TSFE']->config['config']['incT3Lib_htmlmail']) : false;
and the conditions:
if (!$HTMLallowed) {
$adminContent = $this->isHTMLContent($adminContent) ?
strip_tags($adminContent) : $adminContent;
$admMail = $this->cObj->sendNotifyEmail(...);
} else {
if ($this->isHTMLContent) {
sendHTMLMail
} else {
sendNotifyEmail
}
}
vg Steffen
More information about the TYPO3-team-core
mailing list