Commit 2f64d04e authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

Revert "[TASK] removed deprecated call to compat_version"

This reverts commit 3ba6e51f.
parent 3ba6e51f
......@@ -127,11 +127,17 @@ class ConfigurationService extends AbstractService {
unset($this->extConfig['viewLanguages']);
$availableLanguageKeys = [];
$languages = explode(
'|', TYPO3_languages
);
foreach ($languages as $language) {
$availableLanguageKeys[$language] = TRUE;
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;
}
}
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