Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -16,7 +16,7 @@ endif;
|
||||
|
||||
if ( $this -> category['view_subcategories'] ):
|
||||
echo \Shared\Tpl\Tpl::view( 'shop-category/_partials/category-subcategory-tiles', [
|
||||
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategoriesLangCached( (int)$this -> category['id'] ),
|
||||
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->categoriesTree( $lang_id, (int)$this -> category['id'] ),
|
||||
] );
|
||||
|
||||
endif;
|
||||
@@ -36,4 +36,4 @@ if ( $this -> category_description ):
|
||||
'category' => $this -> category
|
||||
] );
|
||||
endif;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user