From 757fe64217d46ea606c56c690d5a43e55f6f3943 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Wed, 25 Sep 2013 16:09:55 +0200 Subject: [PATCH] [-] MO : FixBug #10460 - UTF8 bug on accented URL --- modules/blocktopmenu/blocktopmenu.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/blocktopmenu/blocktopmenu.php b/modules/blocktopmenu/blocktopmenu.php index a5eb3b3c5..a28b4c0bc 100644 --- a/modules/blocktopmenu/blocktopmenu.php +++ b/modules/blocktopmenu/blocktopmenu.php @@ -543,21 +543,21 @@ class Blocktopmenu extends Module $selected = ($this->page_name == 'product' && (Tools::getValue('id_product') == $id)) ? ' class="sfHover"' : ''; $product = new Product((int)$id, true, (int)$id_lang); if (!is_null($product->id)) - $this->_menu .= ''.$product->name.''.PHP_EOL; + $this->_menu .= ''.$product->name.''.PHP_EOL; break; case 'CMS': $selected = ($this->page_name == 'cms' && (Tools::getValue('id_cms') == $id)) ? ' class="sfHover"' : ''; $cms = CMS::getLinks((int)$id_lang, array($id)); if (count($cms)) - $this->_menu .= ''.$cms[0]['meta_title'].''.PHP_EOL; + $this->_menu .= ''.$cms[0]['meta_title'].''.PHP_EOL; break; case 'CMS_CAT': $category = new CMSCategory((int)$id, (int)$id_lang); if (count($category)) { - $this->_menu .= '
  • '.$category->name.''; + $this->_menu .= '
  • '.$category->name.''; $this->getCMSMenuItems($category->id); $this->_menu .= '
  • '.PHP_EOL; } @@ -583,7 +583,7 @@ class Blocktopmenu extends Module else $manufacturer->link_rewrite = 0; $link = new Link; - $this->_menu .= ''.$manufacturer->name.''.PHP_EOL; + $this->_menu .= ''.$manufacturer->name.''.PHP_EOL; } break; @@ -603,7 +603,7 @@ class Blocktopmenu extends Module if (!is_null($supplier->id)) { $link = new Link; - $this->_menu .= ''.$supplier->name.''.PHP_EOL; + $this->_menu .= ''.$supplier->name.''.PHP_EOL; } break; @@ -613,7 +613,7 @@ class Blocktopmenu extends Module if (Validate::isLoadedObject($shop)) { $link = new Link; - $this->_menu .= ''.$shop->name.''.PHP_EOL; + $this->_menu .= ''.$shop->name.''.PHP_EOL; } break; case 'LNK': @@ -625,7 +625,7 @@ class Blocktopmenu extends Module $default_language = Configuration::get('PS_LANG_DEFAULT'); $link = MenuTopLinks::get($link[0]['id_linksmenutop'], $default_language, (int)Shop::getContextShopID()); } - $this->_menu .= '
  • '.$link[0]['label'].'
  • '.PHP_EOL; + $this->_menu .= '
  • '.$link[0]['label'].'
  • '.PHP_EOL; } break; } @@ -677,7 +677,7 @@ class Blocktopmenu extends Module if (!empty($is_intersected)) { $this->_menu .= '
  • '; - $this->_menu .= ''.$category->name.''; + $this->_menu .= ''.$category->name.''; if (count($children)) {