1
0
mirror of synced 2024-11-25 23:06:08 +03:00
bitrix-module/intaro.intarocrm/updater.php
2013-10-04 16:56:57 +04:00

9 lines
364 B
PHP

<?php
$mid = 'intaro.intarocrm';
$CRM_API_HOST_OPTION = 'api_host';
$api_host = COption::GetOptionString($mid, $CRM_API_HOST_OPTION, 0);
$api_host = parse_url($api_host);
if ($api_host['scheme'] != 'https') $api_host['scheme'] = 'https';
$api_host = $api_host['scheme'] . '://' . $api_host['host'];
COption::SetOptionString($mid, $CRM_API_HOST_OPTION, $api_host);