Actions
Bug #38879
closedTYPO3 is not defined, if inlineSettings are rendered without ExtJs
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-07-11
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
The JavaScript object "TYPO3" is not defined, if inlineSettings (TYPO3.settings / TYPO3.lang) are rendered without ExtJ.
Reproduce: Add inline settings in pagerenderer without adding ExtJs...
Affects 4.5, 4.6, 4.7, 6.0
Index: t3lib/class.t3lib_pagerenderer.php =================================================================== --- t3lib/class.t3lib_pagerenderer.php (revision 501) +++ t3lib/class.t3lib_pagerenderer.php (working copy) @@ -1889,6 +1889,7 @@ } } else { if ($inlineSettings) { + $inlineSettings = 'if (typeof TYPO3 === "undefined") TYPO3 = {};' . CRLF . $inlineSettings; $out .= $this->inlineJavascriptWrap[0] . $inlineSettings . $this->inlineJavascriptWrap[1]; } }
Actions