Actions
Bug #20527
closedgetModuleTemplate is prepended with backPath always
Start date:
2009-05-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Problem:
when writing BE module extension you may have your template in your extension directory. For now the $filename is always prepended with backpath.
Solution:
use t3lib_div::getFileAbsFileName which allows using this syntax:
$this->doc->setModuleTemplate('EXT:myext/mod1/mod_template.html');
(issue imported from #M11216)
Files
Updated by Martin Kutschker over 15 years ago
Please use t3lib_div::getFileAbsFileName($filename, true, true);
Only allowing only relative paths to typo3/ and EXT: will get us consistent results with $GLOBALS['TBE_STYLES']['htmlTemplates'][$filename].
Sidenote: the patch has trailing whitespaces.
Actions