Skip to content

Commit 5636a54

Browse files
author
Oleksii Korshenko
authored
MAGETWO-82664: Magento sets ISO invalid language code [2.3-develop Backport] #11644
2 parents 9ed7081 + 5b8f990 commit 5636a54

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)