Commit 3ba6e51f authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] removed deprecated call to compat_version

parent 14fe5833
......@@ -127,17 +127,11 @@ class ConfigurationService extends AbstractService {
unset($this->extConfig['viewLanguages']);
$availableLanguageKeys = [];
if (GeneralUtility::compat_version('6.0')) {
/** @var Locales $locales */
$locales = GeneralUtility::makeInstance('TYPO3\CMS\Core\Localization\Locales');
$availableLanguageKeys = $locales->getLanguages();
} else {
$languages = explode(
'|', TYPO3_languages
);
foreach ($languages as $language) {
$availableLanguageKeys[$language] = TRUE;
}
$languages = explode(
'|', TYPO3_languages
);
foreach ($languages as $language) {
$availableLanguageKeys[$language] = TRUE;
}
foreach ($langs as $lang) {
......
Supports Markdown
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