We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f95ca76 commit 2086c3dCopy full SHA for 2086c3d
src/app/code/community/Smile/ElasticSearch/Helper/Data.php
@@ -85,7 +85,10 @@ public function getLanguageCodeByLocaleCode($localeCode)
85
*/
86
public function getLanguageCodeByStore($store = null)
87
{
88
- return $this->getLanguageCodeByLocaleCode($this->getLocaleCode($store));
+ if (!isset($this->_languageCodes[$store->getStoreId()])) {
89
+ $this->_languageCodes[$store->getStoreId()] = $this->getLanguageCodeByLocaleCode($this->getLocaleCode($store));
90
+ }
91
+ return $this->_languageCodes[$store->getStoreId()];
92
}
93
94
/**
0 commit comments