[TASK] Fetch html tag "lang" attribute from site
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageGenerator.php
index 835fceb..1f6d554 100644 (file)
@@ -110,6 +110,7 @@ class PageGenerator
         $direction = $tsfe->config['config']['htmlTag_dir'];
         if (self::getCurrentSiteLanguage()) {
             $direction = self::getCurrentSiteLanguage()->getDirection();
+            $htmlLang = self::getCurrentSiteLanguage()->getTwoLetterIsoCode();
         }
         if ($direction) {
             $htmlTagAttributes['dir'] = htmlspecialchars($direction);