[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"
authorandy.grunwald <andygrunwald@gmail.com>
Wed, 9 May 2012 08:45:56 +0000 (10:45 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 20 May 2012 11:03:14 +0000 (13:03 +0200)
commit4163ef3b917915141c716c8800932aa1eb604d75
treee187fa7256c87da3e36627459492b3533588df68
parent4cef5ef01649f12b0d514079240a8e96197eb6fe
[BUGFIX] Regression of "better condition in versionOL of t3lib_tstemplate"

versionOL in t3lib_tstemplate can cause a fatal error for
scripts like eID that run in frontend mode, but without a full
blown frontend environment.

The patch replaces the frontend check with a more specific test
for the required methods.

Change-Id: Ib3f9ebf355ee820e5144dd484d9a3a5e7708ebd4
Related: #31139, #25144
Resolves: #36981
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/11096
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_tstemplate.php
tests/Unit/t3lib/class.t3lib_tstemplateTest.php [new file with mode: 0644]