[-] Fo : Call Gmaps on https if required
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user