[TYPO3-core] FYI24: #16405: pageRenderer call addJsFile with leaving out 2nd parameter
Steffen Kamper
info at sk-typo3.de
Mon Nov 15 20:21:03 CET 2010
Hi,
this is a SVN patch request.
Type: Bugfix
BT Reference: http://bugs.typo3.org/view.php?id=16405
Branches: trunk
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.Ext
Direct', 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
I'll commit this in 24 hours if noone complains.
vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16405.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101115/99a83c46/attachment.asc>
More information about the TYPO3-team-core
mailing list