From e1f429449fc4a57386750e9e03bedef1068cfad2 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Fri, 31 Aug 2018 14:03:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87=D0=B0?= =?UTF-8?q?=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D1=83=D0=BB=D1=8F=20=D0=B2=20=D0=B0=D0=B4=D0=BC=D0=B8?= =?UTF-8?q?=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- intaro.retailcrm/install/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/intaro.retailcrm/install/index.php b/intaro.retailcrm/install/index.php index a0b96a3b..bd16df2b 100644 --- a/intaro.retailcrm/install/index.php +++ b/intaro.retailcrm/install/index.php @@ -1047,6 +1047,8 @@ class intaro_retailcrm extends CModule $api_version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0); $this->RETAIL_CRM_API = new \RetailCrm\ApiClient($api_host, $api_key); $clientId = hash('md5', date('Y-m-d H:i:s')); + $scheme = isset($_SERVER['HTTPS']) ? 'https://' : 'http://'; + $baseUrl = $scheme . $_SERVER['HTTP_HOST']; try { $configuration = array( @@ -1055,7 +1057,9 @@ class intaro_retailcrm extends CModule 'integrationCode' => 'bitrix', 'active' => true, 'name' => GetMessage('API_MODULE_NAME'), - 'logo' => 'https://s3.eu-central-1.amazonaws.com/retailcrm-billing/images/5af47fe682bf2-1c-bitrix-logo.svg' + 'logo' => 'https://s3.eu-central-1.amazonaws.com/retailcrm-billing/images/5af47fe682bf2-1c-bitrix-logo.svg', + 'baseUrl' => $baseUrl, + 'accountUrl' => $baseUrl . '/bitrix/admin/settings.php?mid=intaro.retailcrm' ); if ($api_version == 'v4') {