// Fix #PSFV-310
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12062 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user