mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
repair parent category
This commit is contained in:
parent
aa86d2fa80
commit
9977c01f49
@ -43,7 +43,8 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
|||||||
|
|
||||||
public function getCatLevel($id)
|
public function getCatLevel($id)
|
||||||
{
|
{
|
||||||
return count($this->getParentCats($id));
|
//count parent and itself
|
||||||
|
return count($this->getParentCats($id))+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSubCategories($id, $get = null)
|
public function getSubCategories($id, $get = null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user