SSL link for product image

This commit is contained in:
Alex Lushpai 2021-04-23 12:20:36 +03:00 committed by GitHub
commit 92d94c919e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,17 +279,14 @@ class ModelExtensionRetailcrmIcml extends Model
/** /**
* Url * Url
*/ */
$this->url = new Url( $this->url = new Url(HTTP_CATALOG, HTTPS_CATALOG);
HTTP_CATALOG,
$this->config->get('config_secure')
? HTTP_CATALOG
: HTTPS_CATALOG
);
$e->appendChild($this->dd->createElement('url')) $e->appendChild($this->dd->createElement('url'))
->appendChild( ->appendChild(
$this->dd->createTextNode( $this->dd->createTextNode(
$this->url->link( $this->url->link(
'product/product&product_id=' . $product['product_id'] 'product/product&product_id=' . $product['product_id'],
'',
(bool) $this->config->get('config_secure')
) )
) )
); );