diff --git a/controllers/front/StoresController.php b/controllers/front/StoresController.php index ac10c1dc1..33bc1d3d2 100644 --- a/controllers/front/StoresController.php +++ b/controllers/front/StoresController.php @@ -279,6 +279,6 @@ class StoresControllerCore extends FrontController if (!Configuration::get('PS_STORES_SIMPLIFIED')) $this->addJS(_THEME_JS_DIR_.'stores.js'); $default_country = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT')); - $this->addJS('http://maps.google.com/maps/api/js?sensor=true&region='.substr($default_country->iso_code, 0, 2)); + $this->addJS('http'.((Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) ? 's' : '').'://maps.google.com/maps/api/js?sensor=true&region='.substr($default_country->iso_code, 0, 2)); } }