[TYPO3-core] RFC #15246: Use t3lib_div::getIndpEnv('SCRIPT_FILENAME') to determine PATH_thisScript
Nikolas Hagelstein
lists at shr.cc
Tue Jul 27 12:21:05 CEST 2010
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')
Notes:
This is a pre-condition for resolving:
http://bugs.typo3.org/view.php?id=15241
Cheers,
Nikolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sapi.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100727/eded6553/attachment.asc>
More information about the TYPO3-team-core
mailing list