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 a683c74 commit bfa91c9Copy full SHA for bfa91c9
lib/internal/Magento/Framework/App/Config/ScopePool.php
@@ -96,8 +96,10 @@ public function getScope($scopeType, $scopeCode = null)
96
$host = $this->getRequest()->getServer('HTTP_HOST');
97
$port = $this->getRequest()->getServer('SERVER_PORT');
98
$path = $this->getRequest()->getBasePath();
99
+ $host = ($host == null) ? 'localhost' : $host;
100
$urlInfo = $host . $port . trim($path, '/');
101
$code = $scopeType . '|' . $scopeCode . '|' . $urlInfo;
102
+
103
if (!isset($this->_scopes[$code])) {
104
$cacheKey = $this->_cacheId . '|' . $code;
105
$data = $this->_cache->load($cacheKey);
0 commit comments