Commit 29813217 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

Revert "Revert "[TASK] removed deprecated call to compat_version""

This reverts commit 2f64d04e.
parent 2f64d04e
......@@ -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