Actions
Bug #24068
closedpageRenderer call addJsFile with leaving out 2nd parameter
Start date:
2010-11-15
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
With ExtDirect this method is called to include ajax.php with a set of GET vars.
An example call from backend.php:
$this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.Ajax.ExtDirect', NULL, FALSE);
As 2nd parameter is NULL, it will render
<script src="..." type=""></script>
instead default type="text/javascript"
which is invalid code.
Solution:
the patch allow to set 2nd parameter to NULL to get the default parameter used
(issue imported from #M16405)
Files
Actions