1
0
mirror of synced 2025-01-31 23:31:41 +03:00

https in urls in ICML

This commit is contained in:
Ilyas Salikhov 2014-02-14 18:51:19 +03:00
parent a1cf53dedf
commit 45662c78ed

View File

@ -317,7 +317,7 @@ class ICMLLoader {
while($file = $dbFiles->GetNext()) {
// Link picture to product
$products[$pictures[$file['ID']]]['PICTURE'] = "http://" .
$products[$pictures[$file['ID']]]['PICTURE'] = ($_SERVER["HTTPS"] == 'on' ? "https://" : "http://") .
$_SERVER['SERVER_NAME'] .
'/upload/' . $file['SUBDIR'] .
'/' . $file['FILE_NAME'] ;
@ -513,7 +513,7 @@ class ICMLLoader {
}
$offer .= "<picture>" . $this->PrepareValue($arOffer["PICTURE"]) . "</picture>\n";
$offer .= "<url>http://" . $_SERVER['SERVER_NAME'] . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "</url>\n";
$offer .= "<url>" . ($_SERVER["HTTPS"] == 'on' ? "https://" : "http://") . $_SERVER['SERVER_NAME'] . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "</url>\n";
$offer .= "<price>" . $this->PrepareValue($arOffer['PRICE']) . "</price>\n";
foreach ($categories as $category)
@ -545,4 +545,4 @@ class ICMLLoader {
return $offer;
}
}
}