[BUGFIX] Invalid LOCAL_LANG overlay for non-existing languages
authorXavier Perseguers <xavier@typo3.org>
Mon, 28 Nov 2011 11:34:35 +0000 (12:34 +0100)
committerXavier Perseguers <xavier@typo3.org>
Mon, 28 Nov 2011 11:36:02 +0000 (12:36 +0100)
Language overlay with custom TypoScript should only be done for currently
use languages.

Change-Id: Id663d11f561055fb4fcbb766cad3fe6677c295a4
Fixes: #32133
Releases: 4.7, 4.6, 4.5

typo3/sysext/extbase/Classes/Utility/Localization.php

index 4d1b9cd..fa0e315 100644 (file)
@@ -210,7 +210,7 @@ class Tx_Extbase_Utility_Localization {
                        return;
                }
                foreach ($frameworkConfiguration['_LOCAL_LANG'] as $languageKey => $labels) {
-                       if (!is_array($labels)) {
+                       if (!(is_array($labels) && isset(self::$LOCAL_LANG[$extensionName][$languageKey]))) {
                                continue;
                        }
                        foreach($labels as $labelKey => $labelValue) {