From 2d8db50d40fbbf2aff32bb4fc3ea067eb9e090e7 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 5 Apr 2012 12:22:46 +0000 Subject: [PATCH] // Blocktopmenu: Children is the plural form of child --- modules/blocktopmenu/blocktopmenu.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/blocktopmenu/blocktopmenu.php b/modules/blocktopmenu/blocktopmenu.php index c5f98fbc7..f505bb677 100644 --- a/modules/blocktopmenu/blocktopmenu.php +++ b/modules/blocktopmenu/blocktopmenu.php @@ -525,18 +525,18 @@ class Blocktopmenu extends Module if ($recursive) { - $childrens = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop); + $children = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop); $spacer = str_repeat(' ', $this->spacer_size * (int)$category->level_depth); } - $shop = (object) Shop::getShop((int)$category->getShopID()); + $shop = (object) Shop::getShop((int)$category->getShopID()); $this->_html .= ''; - if (isset($childrens) && count($childrens)) - foreach ($childrens as $children) - { - $this->getCategoryOption((int)$children['id_category'], (int)$id_lang, (int)$children['id_shop']); - } + if (isset($children) && count($children)) + foreach ($children as $child) + { + $this->getCategoryOption((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']); + } } private function getCategory($id_category, $id_lang = false, $id_shop = false) @@ -552,17 +552,17 @@ class Blocktopmenu extends Module if (is_null($category->id)) return; - $childrens = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop); + $children = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop); $selected = ($this->page_name == 'category' && ((int)Tools::getValue('id_category') == $id_category)) ? ' class="sfHoverForce"' : ''; $this->_menu .= '
  • '; $this->_menu .= ''.$category->name.''; - if (count($childrens)) + if (count($children)) { $this->_menu .= ''; }