From 6ddf220aee12703f75d1e6c54d2a45e0180f5804 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 12 Nov 2013 21:16:09 +0100 Subject: [PATCH] [-] Fo : Call Gmaps on https if required --- controllers/front/StoresController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }