[TASK] Replace csConvObj calls
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Format / CropViewHelper.php
index c35b2c7..2e0828a 100644 (file)
@@ -141,11 +141,7 @@ class CropViewHelper extends AbstractViewHelper
         $GLOBALS['TSFE'] = new \stdClass();
         // preparing csConvObj
         if (!is_object($GLOBALS['TSFE']->csConvObj)) {
-            if (is_object($GLOBALS['LANG'])) {
-                $GLOBALS['TSFE']->csConvObj = $GLOBALS['LANG']->csConvObj;
-            } else {
-                $GLOBALS['TSFE']->csConvObj = GeneralUtility::makeInstance(CharsetConverter::class);
-            }
+            $GLOBALS['TSFE']->csConvObj = GeneralUtility::makeInstance(CharsetConverter::class);
         }
         // preparing renderCharset
         if (!is_object($GLOBALS['TSFE']->renderCharset)) {