Skip to content

Commit beac80e

Browse files
author
Oleksii Korshenko
authored
MAGETWO-82431: Magento sets ISO invalid language code #11561
2 parents 2e27b70 + e41c27f commit beac80e

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Page

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Page/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function __construct(
173173
$this->setElementAttribute(
174174
self::ELEMENT_TYPE_HTML,
175175
self::HTML_ATTRIBUTE_LANG,
176-
str_replace('_', '-', $this->localeResolver->getLocale())
176+
strstr($this->localeResolver->getLocale(), '_', true)
177177
);
178178
}
179179

0 commit comments

Comments
 (0)