Project

General

Profile

Actions

Bug #24068

closed

pageRenderer call addJsFile with leaving out 2nd parameter

Added by Steffen Kamper about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

16405.patch (1.54 KB) 16405.patch Administrator Admin, 2010-11-15 20:16
Actions #1

Updated by Steffen Kamper about 14 years ago

committed to trunk rev 9404

Actions #2

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF