[-] FO : Fixed bug PSCFV-564 related to Google Maps API (Added "region" parameter)
This commit is contained in:
@@ -261,6 +261,7 @@ class StoresControllerCore extends FrontController
|
||||
$this->addCSS(_THEME_CSS_DIR_.'stores.css');
|
||||
if (!Configuration::get('PS_STORES_SIMPLIFIED'))
|
||||
$this->addJS(_THEME_JS_DIR_.'stores.js');
|
||||
$this->addJS('http://maps.google.com/maps/api/js?sensor=true');
|
||||
$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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
{capture name=path}{l s='Our stores'}{/capture}
|
||||
{include file="$tpl_dir./breadcrumb.tpl"}
|
||||
|
||||
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
|
||||
|
||||
<h1>{l s='Our stores'}</h1>
|
||||
|
||||
{if $simplifiedStoresDiplay}
|
||||
|
||||
Reference in New Issue
Block a user