diff --git a/intaro.intarocrm/classes/general/ICMLLoader.php b/intaro.intarocrm/classes/general/ICMLLoader.php index 351afa4a..29cf1014 100644 --- a/intaro.intarocrm/classes/general/ICMLLoader.php +++ b/intaro.intarocrm/classes/general/ICMLLoader.php @@ -318,7 +318,7 @@ class ICMLLoader { // Link picture to product $products[$pictures[$file['ID']]]['PICTURE'] = "http://" . - $iblock['IBLOCK_DB']['SERVER_NAME'] . + $_SERVER['SERVER_NAME'] . '/upload/' . $file['SUBDIR'] . '/' . $file['FILE_NAME'] ; } @@ -513,7 +513,7 @@ class ICMLLoader { } $offer .= "" . $this->PrepareValue($arOffer["PICTURE"]) . "\n"; - $offer .= "http://" . $this->PrepareValue($iblock['IBLOCK_DB']['SERVER_NAME']) . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "\n"; + $offer .= "http://" . $_SERVER['SERVER_NAME'] . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "\n"; $offer .= "" . $this->PrepareValue($arOffer['PRICE']) . "\n"; foreach ($categories as $category)