From 8445980d5aefbcb04acae0f24c67f01a3c0c08ac Mon Sep 17 00:00:00 2001 From: Ruslan Efanov Date: Mon, 19 Apr 2021 17:35:51 +0300 Subject: [PATCH] add ssl in link of image for product --- src/upload/admin/model/extension/retailcrm/icml.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/upload/admin/model/extension/retailcrm/icml.php b/src/upload/admin/model/extension/retailcrm/icml.php index 1963ee9..bcae0e8 100644 --- a/src/upload/admin/model/extension/retailcrm/icml.php +++ b/src/upload/admin/model/extension/retailcrm/icml.php @@ -279,17 +279,14 @@ class ModelExtensionRetailcrmIcml extends Model /** * Url */ - $this->url = new Url( - HTTP_CATALOG, - $this->config->get('config_secure') - ? HTTP_CATALOG - : HTTPS_CATALOG - ); + $this->url = new Url(HTTP_CATALOG, HTTPS_CATALOG); $e->appendChild($this->dd->createElement('url')) ->appendChild( $this->dd->createTextNode( $this->url->link( - 'product/product&product_id=' . $product['product_id'] + 'product/product&product_id=' . $product['product_id'], + '', + (bool) $this->config->get('config_secure') ) ) );