#36981Regression of "better condition in versionOL of t3lib_tstemplate" (#31139)
Description
In bug #31139: “better condition in versionOL of t3lib_tstemplate”, the commit / change produces a regression.
The line
if (is_object($GLOBALS['TSFE'])) { // Frontend:
was changed to
if (TYPO3_MODE === 'FE') { // Frontend:
This change cause an error, because not in every case in TYPO3_MODE FE is a full blown frontend available. One example is an eID.
An eID is TYPO3_MODE === ‘FE’ but there is no $GLOBALS[‘TSFE’]->sys_page.
The following error occur:
Fatal error: Call to a member function versionOL() on a non-object in /var/www/dasgastroportal.dus.wmdb.de/typo3_src-4.5.15/t3lib/class.t3lib_tstemplate.php on line 753
In our case we create via direct_mail api new mailings via an eid.
Direct mail calls this method to get the correct charset for this page.
I will provide a patch for all four branches 4.5, 4.6, 4.7 and 6.0
Reviews 5
- TYPO3_4-7 11099[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"
- TYPO3_4-5 11097[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"
- TYPO3_4-6 11098[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"
- main 11096[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"
- TYPO3_4-7 11320[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"