mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
src: style sweep (mea culpa)
This commit is contained in:
parent
a8b4925081
commit
44a6e81e82
@ -122,17 +122,17 @@ class MenuSystem
|
||||
*/
|
||||
public function getBreadcrumbs()
|
||||
{
|
||||
$nodes = $this->root->getChildren();
|
||||
$nodes = $this->root->getChildren();
|
||||
$breadcrumbs = array();
|
||||
|
||||
while ($nodes != null) {
|
||||
while ($nodes != null) {
|
||||
$next = null;
|
||||
foreach ($nodes as $node) {
|
||||
if ($node->Selected) {
|
||||
$breadcrumbs[] = array('name' => $node->VisibleName);
|
||||
/* only go as far as the first reachable URL */
|
||||
$next = empty($node->Url) ? $node->Children : null;
|
||||
break;
|
||||
$breadcrumbs[] = array('name' => $node->VisibleName);
|
||||
/* only go as far as the first reachable URL */
|
||||
$next = empty($node->Url) ? $node->Children : null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$nodes = $next;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user