Actions
Bug #81709
closedMultiple INCLUDE_TYPOSCRIPT extensions with spaces not working
Start date:
2017-06-27
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The following TypoScript snippet won't include files with anything but the first file extension:
<INCLUDE_TYPOSCRIPT: source="DIR: ./Library" extensions="ts, setupts, tx">
The reason is the space after the comma which in the end lets TypoScriptParser::includeDirectory()
(more specifically GeneralUtility::getFilesInDir()
handle them as "ts
", " setupts
" and " tx
" (mind the leading space).
This should probably cleaned up with GeneralUtility::trimExplode()
.
Actions