[TYPO3-core] RFC #15246: Use t3lib_div::getIndpEnv('SCRIPT_FILENAME') to determine PATH_thisScript

Martin Kutschker masi-no at spam-typo3.org
Tue Jul 27 14:56:24 CEST 2010


Am 27.07.2010 12:21, schrieb Nikolas Hagelstein:
> This is an SVN patch request.
> 
> Type: Code cleanup
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=15246
> 
> Branches:
> 4.4 & trunk
> 
> Problem:
> Currently PATH_thisScript is checked/defined in several files using a pretty ugly "monster clause
> chain"
> 
> Changing this to t3lib_div::getIndpEnv('SCRIPT_FILENAME') makes things more readable and maintainable.
> 
> Solution:
> Replace "monster clause" by t3lib_div::getIndpEnv('SCRIPT_FILENAME')

But isn't this the first check of all? All other paths are set after resolving this one. So you
shouldn't be able to assume that t3lib is available at that point.

Masi


More information about the TYPO3-team-core mailing list