[BUGFIX] RTE maxWidth for magic images
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Classes / Controller / ImageRenderingController.php
index 8b9d528..f584713 100644 (file)
@@ -123,8 +123,8 @@ class ImageRenderingController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 
                // Get RTE configuration
                $pageTSConfig = $this->getFrontendObject()->getPagesTSconfig();
-               if (is_array($pageTSConfig) && is_array($pageTSConfig['RTE.'])) {
-                       $magicImageService->setMagicImageMaximumDimensions($pageTSConfig['RTE.']);
+               if (is_array($pageTSConfig) && is_array($pageTSConfig['RTE.']['default.'])) {
+                       $magicImageService->setMagicImageMaximumDimensions($pageTSConfig['RTE.']['default.']);
                }
 
                return $magicImageService;