[BUGFIX] Set charset property after cloning t3lib_PageRenderer
authorLaurent Cherpit <lcherpit@ttree.ch>
Mon, 26 Mar 2012 13:37:05 +0000 (15:37 +0200)
committerXavier Perseguers <xavier@typo3.org>
Fri, 31 Aug 2012 14:27:20 +0000 (16:27 +0200)
TCA tree causes fatal error when using in (IRRE)
1284906026: Language and character encoding are not set.

Change-Id: I6e859cb31edd4280d39e0f1ff268b865ac233fca
Fixes: #27957
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/14246
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_tceforms_inline.php

index 36a4189..faa6120 100644 (file)
@@ -2468,6 +2468,7 @@ class t3lib_TCEforms_inline {
                /** @var $pageRenderer t3lib_PageRenderer */
                $pageRenderer = clone $GLOBALS['SOBE']->doc->getPageRenderer();
 
+               $pageRenderer->setCharSet($GLOBALS['LANG']->charSet);
                $pageRenderer->setTemplateFile(TYPO3_mainDir . 'templates/helper_javascript_css.html');
                $javaScriptAndStyleSheets = $pageRenderer->render();