[TYPO3-core] RFC #17725 Cleanup: Wrong check for FE / BE context in class.t3lib_tstemplate.php
Ernesto Baschny [cron IT]
ernst at cron-it.de
Thu Feb 24 15:33:00 CET 2011
Rens Admiraal schrieb am 23.02.2011 19:43:
> Hi,
>
> this is a SVN patch request.
>
> Type: Cleanup / no brainer
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=17725
>
> Branches: 4.5.1
>
> I ran into a wrong check for the frontend / backend context in
> class.t3lib_tstemplate.php. It uses:
> if (is_object($GLOBALS['TSFE']))
>
> as check instead of:
> if (TYPO3_MODE == 'FE')
>
Any way to reproduce this particular bug? To me its not a "no brainer"
if I cannot see what will be fixed with this change. :)
E.g. I can imagine that I could have a $GLOBALS['TSFE'] also in BE
context, and your change would break this situation (just a thought).
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list