// Fix #PSFV-310

This commit is contained in:
rMalie
2012-01-03 13:54:09 +00:00
parent dc6488f512
commit a1f0f982dd
+1 -2
View File
@@ -140,8 +140,7 @@ class ToolsCore
*/
public static function getShopProtocol()
{
$id_shop = Context::getContext()->shop()->id;
$protocol = (Configuration::get('PS_SSL_ENABLED', null, null, $id_shop) || (!empty($_SERVER['HTTPS'])
$protocol = (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS'])
&& strtolower($_SERVER['HTTPS']) != 'off')) ? 'https://' : 'http://';
return $protocol;
}