Skip to content

Commit 453466e

Browse files
authored
Merge pull request #9 from magefan/7455-html-sitemap-at-magefan-com-fix-no-root-category
Fix problem with not root category
2 parents f4eaa46 + fbed62b commit 453466e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Block/Blog/Category.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ public function getGroupedChildes()
100100

101101
$array = $array->addFieldToFilter('mf_exclude_html_sitemap', 0)
102102
->setOrder('position')
103-
->setPageSize($pageSize)
104103
->getTreeOrderedArray();
104+
$array = array_slice($array, 0, $pageSize);
105+
105106

106107
foreach ($array as $key => $item) {
107108
$maxDepth = $this->config->getConfig(self::XML_PATH_TO_BLOG_CATEGORY_DEPTH);

0 commit comments

Comments
 (0)