fix server protocol
This commit is contained in:
parent
68ba68af23
commit
09bbf9bf5c
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user