diff --git a/modules/blocklayered/blocklayered-attribute-indexer.php b/modules/blocklayered/blocklayered-attribute-indexer.php
index 1cdae3657..42d064e1a 100644
--- a/modules/blocklayered/blocklayered-attribute-indexer.php
+++ b/modules/blocklayered/blocklayered-attribute-indexer.php
@@ -1,7 +1,6 @@
0 && !$full || $cursor < $nbProducts && $full) && !$ajax)
{
$token = substr(Tools::encrypt('blocklayered/index'), 0, 10);
- if (!Tools::file_get_contents(Tools::getCurrentUrlProtocolPrefix().Tools::getHttpHost().__PS_BASE_URI__.'modules/blocklayered/blocklayered-price-indexer.php?token='.$token.'&cursor='.(int)$cursor.'&full='.(int)$full))
+ if (Tools::usingSecureMode())
+ $domain = Tools::getShopDomainSsl(true);
+ else
+ $domain = Tools::getShopDomain(true);
+
+ if (!Tools::file_get_contents($domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-price-indexer.php?token='.$token.'&cursor='.(int)$cursor.'&full='.(int)$full))
self::indexPrices((int)$cursor, (int)$full);
return $cursor;
}
@@ -1396,7 +1401,7 @@ class BlockLayered extends Module
'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '
').'
- '.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '

').'
+ '.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '

').'
'.$this->l('Layered navigation').'