mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
getList was returning nothing
This commit is contained in:
@@ -300,7 +300,7 @@ class Pages
|
||||
$list[$current->route()] = str_repeat(' ', ($level-1)*2) . $current->title();
|
||||
}
|
||||
|
||||
foreach ($current as $next) {
|
||||
foreach ($current->children() as $next) {
|
||||
$list = array_merge($list, $this->getList($next, $level + 1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user