Skip to content

Commit

Permalink
Add base route code for routes with dots
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris van de Sande committed Feb 22, 2013
1 parent 0269691 commit 0b3e540
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,12 @@ public function hasRoute($name)
{
$this->buildRoutes();

if (! $this->isChild()) {
if (strpos($name, '.')) {
$name = $this->getCode() . '|' . $name;
}
}

return $this->routes->has($name);
}

Expand Down

0 comments on commit 0b3e540

Please sign in to comment.