[-] FO : #PSTEST-969 : BugFix Store icon in GMap

This commit is contained in:
Francois Gaillard
2012-03-07 16:09:01 +00:00
parent 64e0a52359
commit 5d76dfa621
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -157,7 +157,7 @@ class StoresControllerCore extends FrontController
*/
protected function assignStores()
{
$this->context->smarty->assign('hasStoreIcon', file_exists(dirname(__FILE__).'/../img/'.Configuration::get('PS_STORES_ICON')));
$this->context->smarty->assign('hasStoreIcon', file_exists(_PS_IMG_DIR_.Configuration::get('PS_STORES_ICON')));
$distanceUnit = Configuration::get('PS_DISTANCE_UNIT');
if (!in_array($distanceUnit, array('km', 'mi')))
@@ -198,6 +198,7 @@ class StoresControllerCore extends FrontController
$address = $this->processStoreAddress($store);
$other = '';
if (!empty($store['hours']))
{
$hours = unserialize($store['hours']);