Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -100,6 +100,21 @@ class DatabaseNavigation extends PermissionCache
|
||||
$categories = $categoriesClass::load( $database->default_category );
|
||||
}
|
||||
|
||||
return $this->output( $database, $categories, Dispatcher::i()->categoryId );
|
||||
$categoryTree = [];
|
||||
if( Dispatcher::i()->categoryId )
|
||||
{
|
||||
try
|
||||
{
|
||||
$current = $categoriesClass::load( Dispatcher::i()->categoryId );
|
||||
while( $current )
|
||||
{
|
||||
$categoryTree[] = $current->_id;
|
||||
$current = $current->parent();
|
||||
}
|
||||
}
|
||||
catch ( OutOfRangeException $e ){}
|
||||
}
|
||||
|
||||
return $this->output( $database, $categories, $categoryTree );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user