Bug #17090
closedwrong INCLUDE_TYPOSCRIPT does not output error message
100%
Description
When INCLUDE_TYPOSCRIPT is used inside of TypoScript and the file is not found or there is no read access, then the file is not included.
A warning message should be displaid in the content in the TypoScript template analyzer.
function includeStaticTypoScriptSources in t3lib/class.t3lib_tstemplate.php
If t3lib_div::getUrl gives an empty result and the file exists, then a error message should be displayed to inform the user. This would save a lot of time to discover the reason.
$subrow=array(
'constants'=> @is_file($ISF_filePath.'constants.txt') ?t3lib_div::getUrl($ISF_filePath.'constants.txt'):'',
'config'=> @is_file($ISF_filePath.'setup.txt') ?t3lib_div::getUrl($ISF_filePath.'setup.txt'):'',
'editorcfg'=> @is_file($ISF_filePath.'editorcfg.txt') ?t3lib_div::getUrl($ISF_filePath.'editorcfg.txt'):'',
'include_static'=> @is_file($ISF_filePath.'include_static.txt')?implode(',',array_unique(t3lib_div::intExplode(',',t3lib_div::getUrl($ISF_filePath.'include_static.txt')))):'',
'include_static_file'=> @is_file($ISF_filePath.'include_static_file.txt')?implode(',',array_unique(explode(',',t3lib_div::getUrl($ISF_filePath.'include_static_file.txt')))):'',
'title' => $ISF_file,
'uid' => $mExtKey
);
(issue imported from #M5156)