[BUGFIX] Use sys_language isocode for SiteLanguage
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Site / PseudoSiteFinder.php
index b581149..534bfc9 100644 (file)
@@ -139,8 +139,9 @@ class PseudoSiteFinder
             $languageRecords[$uid] = [
                 'languageId' => $uid,
                 'title' => $row['title'],
-                'iso' => $row['language_isocode'] ?? '',
+                'iso-639-1' => $row['language_isocode'] ?? '',
                 'flag' => 'flags-' . $row['flag'],
+                'enabled' => !$row['hidden'],
             ];
         }