Skip to content

Commit

Permalink
Fixed in typo in render method.
Browse files Browse the repository at this point in the history
  • Loading branch information
lavary committed Jul 22, 2014
1 parent 050d821 commit 71fb68e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Lavary/Menu/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,14 @@ public function render($type = 'ul', $parent = null)
$items .= "<{$item_tag}{$this->attributes($item->attr)}>";

if($item->link) {
$items .= "<a{$this->attributes($item->link->attr())} href=\"{$item->url()}\">{$item->title()}</a>";
$items .= "<a{$this->attributes($item->link->attr())} href=\"{$item->url()}\">{$item->title}</a>";
} 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 .= "</{$type}>";
}

Expand Down

0 comments on commit 71fb68e

Please sign in to comment.