1
0
mirror of synced 2024-12-05 03:16:04 +03:00

fix server protocol

This commit is contained in:
Vitaly Artemev 2016-12-13 17:25:05 +04:00 committed by GitHub
parent 68ba68af23
commit 09bbf9bf5c

View File

@ -18,8 +18,14 @@ class RCrmIcml
$domainsCollection = domainsCollection::getInstance(); $domainsCollection = domainsCollection::getInstance();
$domainsCollectionList = $domainsCollection->getList(); $domainsCollectionList = $domainsCollection->getList();
$domainCollection = $domainsCollectionList[1]; $domainCollection = $domainsCollectionList[1];
$serverProtocol = mainConfiguration::getInstance()->get('system', 'server-protocol') . '://';
$this->shopUrl = $serverProtocol . $domainCollection->getHost(); if (mainConfiguration::getInstance()->get('system', 'server-protocol')) {
$serverProtocol = mainConfiguration::getInstance()->get('system', 'server-protocol');
} else {
$serverProtocol = 'http';
}
$this->shopUrl = $serverProtocol . '://' . $domainCollection->getHost();
} }
public function generateICML() public function generateICML()