[TYPO3-core] RFC #11154: calls to deprecated function makeInstanceClassName in core

Franz Koch typo.removeformessage at fx-graefix.de
Sat May 23 21:10:30 CEST 2009


Hi Steffen,

>> So what do you suggest now? Check at this point if the (outdated) 
>> "config.incT3Lib_htmlmail" has been set and only then use the autoloader?
>>
> 
> maybe we use that setting, yes. This would allow backward compatibility 
> and documentation has only to be changed slightly
> 
> i suggest:
> if ($GLOBALS['TSFE']->config['config']['incT3Lib_htmlmail']) {
>     // html is activated. So use isHTMLContent to decide for html / plain
> } else {
>     // use strip_tags for mail content and send plain
> }
> 
> so we kill two birds with one stone:
> * backwards compatibility
> * a useful global switch for html / plain

What I'm not entirely sure about is, in which cases t3lib_htmlmail 
already was available, even if the TSconfig option hadn't been set. 
Anyway - attached v3 of the patch :)

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------


More information about the TYPO3-team-core mailing list