[-] FO : Fixed bug PSCFV-564 related to Google Maps API (Added "region" parameter)

This commit is contained in:
bLeveque
2012-05-11 00:13:52 +00:00
parent af82f229b3
commit 8fc74574be
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -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));
}
}
-2
View File
@@ -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}