[BUGFIX] TCEmain::clear_cacheCmd relies on active BE_USER
authorSteffen Gebert <steffen.gebert@typo3.org>
Thu, 29 Dec 2011 11:21:32 +0000 (12:21 +0100)
committerGeorg Ringer <mail@ringerge.org>
Wed, 18 Jan 2012 18:03:37 +0000 (19:03 +0100)
commit416dd48529d7ea15ca4837d51aeeee1a42576b37
tree093894bf1f7763187dd9f9ae511e29f7208bcac4
parent12f76a247927fc7e12098ede7c42a6661f3627f1
[BUGFIX] TCEmain::clear_cacheCmd relies on active BE_USER

Several developers abuse t3lib_TCEmain and instantiate it also in other
contexts than BE, for which it never was made.

As this breaks several extensions that use it in FE or CLI mode and the
fix is trivial, avoid crashing.

Change-Id: I5d72375fe252184b3ed41c90cf7b06ae45052cc5
Fixes: #28007
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7806
Reviewed-by: Steffen Ritter
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_tcemain.php