Commit 01bdfe68 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch 'replace-deprecated-class-language' into 'develop'

Replaces deprecated class language

See merge request !147
parents 4e7d94d2 96523cc1
Pipeline #1988 failed with stages
in 4 minutes and 11 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