Skip to content

Commit

Permalink
fix little bug when registering menu item via route
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravitano committed Jun 9, 2015
1 parent 3b3c6ee commit a90f073
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pingpong/Menus/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ public function dropdown($title, $order = 0, \Closure $callback)
*/
public function route($route, $title, $parameters = array(), $order = 0, $attributes = array())
{
return $this->add(compact('url', 'title', 'order', 'attributes'));
$route = array($route, $parameters);

return $this->add(compact('route', 'title', 'order', 'attributes'));
}

/**
Expand Down

0 comments on commit a90f073

Please sign in to comment.