[-] MO : statsdata must use SSL when tracking a secure page #PSCFV-5443

This commit is contained in:
dMetzger
2012-11-09 14:27:30 +00:00
parent ad62133539
commit 3aa5c27880
+2 -2
View File
@@ -124,7 +124,7 @@ class StatsData extends Module
navinfo.type = "navinfo"; navinfo.type = "navinfo";
navinfo.id_guest = "'.(int)$params['cookie']->id_guest.'"; navinfo.id_guest = "'.(int)$params['cookie']->id_guest.'";
navinfo.token = "'.$token.'"; navinfo.token = "'.$token.'";
$.post("'.Context::getContext()->link->getPageLink('statistics').'", navinfo); $.post("'.Context::getContext()->link->getPageLink('statistics', (bool)(Tools::getShopProtocol() == 'https://')).'", navinfo);
} }
); );
</script>'; </script>';
@@ -159,7 +159,7 @@ class StatsData extends Module
pagetime.time_start = "'.$tokenArray['time_start'].'"; pagetime.time_start = "'.$tokenArray['time_start'].'";
pagetime.token = "'.$token.'"; pagetime.token = "'.$token.'";
pagetime.time = time_end-time_start; pagetime.time = time_end-time_start;
$.post("'.Context::getContext()->link->getPageLink('statistics').'", pagetime); $.post("'.Context::getContext()->link->getPageLink('statistics', (bool)(Tools::getShopProtocol() == 'https://')).'", pagetime);
} }
); );
</script>'; </script>';