[BUGFIX] Set charset property after cloning t3lib_PageRenderer
authorLaurent Cherpit <lcherpit@ttree.ch>
Fri, 31 Aug 2012 14:08:19 +0000 (16:08 +0200)
committerXavier Perseguers <xavier@typo3.org>
Fri, 31 Aug 2012 14:24:34 +0000 (16:24 +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/9874
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 61761b2..2af2d91 100644 (file)
@@ -2291,6 +2291,7 @@ class InlineElement {
        protected function getJavaScriptAndStyleSheetsOfPageRenderer() {
                /** @var $pageRenderer \TYPO3\CMS\Core\Page\PageRenderer */
                $pageRenderer = clone $GLOBALS['SOBE']->doc->getPageRenderer();
+               $pageRenderer->setCharSet($GLOBALS['LANG']->charSet);
                $pageRenderer->setTemplateFile(TYPO3_mainDir . 'templates/helper_javascript_css.html');
                $javaScriptAndStyleSheets = $pageRenderer->render();
                return $javaScriptAndStyleSheets;