diff --git a/src/Lavary/Menu/Builder.php b/src/Lavary/Menu/Builder.php index 175e803..e0c3186 100644 --- a/src/Lavary/Menu/Builder.php +++ b/src/Lavary/Menu/Builder.php @@ -510,14 +510,14 @@ public function render($type = 'ul', $parent = null) $items .= "<{$item_tag}{$this->attributes($item->attr)}>"; if($item->link) { - $items .= "attributes($item->link->attr())} href=\"{$item->url()}\">{$item->title()}"; + $items .= "attributes($item->link->attr())} href=\"{$item->url()}\">{$item->title}"; } else { $items .= $item->title; } - if( $item->hasChilderen() ) { + if( $item->hasChildren() ) { $items .= "<{$type}>"; - $items .= $this->render($type, $item->id()); + $items .= $this->render($type, $item->id); $items .= ""; }