// second revert
This commit is contained in:
+2
-2
@@ -594,7 +594,7 @@ class Blocktopmenu extends Module
|
|||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function generateCategoriesMenu($categories)
|
private function generateCategoriesMenu($categories, $is_children = 0)
|
||||||
{
|
{
|
||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
@@ -615,7 +615,7 @@ class Blocktopmenu extends Module
|
|||||||
if (isset($category['children']) && !empty($category['children']))
|
if (isset($category['children']) && !empty($category['children']))
|
||||||
{
|
{
|
||||||
$html .= '<ul>';
|
$html .= '<ul>';
|
||||||
$html .= $this->generateCategoriesMenu($category['children']);
|
$html .= $this->generateCategoriesMenu($category['children'], 1);
|
||||||
|
|
||||||
if ((int)$category['level_depth'] > 1)
|
if ((int)$category['level_depth'] > 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user