Commit 96523cc1 authored by Thomas Löffler's avatar Thomas Löffler

Replaces deprecated class language

parent e015be42
Pipeline #1969 passed with stages
in 1 minute and 22 seconds
......@@ -62,7 +62,7 @@ class CropViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
if (isset($GLOBALS['LANG'])) {
$languageObject = $GLOBALS['LANG'];
} else {
$languageObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('language');
$languageObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Lang\LanguageService::class);
$languageObject->init('en');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment