Skip to content
Snippets Groups Projects
Commit 93fa6926 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix locales related warning

parent 6e471c07
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,12 @@ class tinyMCE {
}
// language conversion from TLD to iso631
if (class_exists('t3lib_l10n_Locales')) {
if (class_exists('\TYPO3\CMS\Core\Localization\Locales')) {
/** @var $locales \TYPO3\CMS\Core\Localization\Locales */
$locales = t3lib_div::makeInstance('\TYPO3\CMS\Core\Localization\Locales');
$locales->initialize();
$isoArray = $locales->getIsoMapping();
} elseif (class_exists('t3lib_l10n_Locales')) {
/** @var $locales t3lib_l10n_Locales */
$locales = t3lib_div::makeInstance('t3lib_l10n_Locales');
$isoArray = $locales->getIsoMapping();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment