[TYPO3-core] RFC #15246: Use t3lib_div::getIndpEnv('SCRIPT_FILENAME') to determine PATH_thisScript
Felix Kopp — PHORAX
typo3-core at phorax.com
Tue Jul 27 15:12:10 CEST 2010
If PATH_t3lib within index_ts.php is set correctly that should not result in a problem.
PATH_thisScript could be set after t3lib …
On 27.07.2010, at 14:56, Martin Kutschker wrote:
> 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
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list