Skip to content

Commit

Permalink
Fix for mounting
Browse files Browse the repository at this point in the history
Bad named method fixed.
  • Loading branch information
VeeeneX committed Aug 18, 2015
1 parent 5f0ba54 commit bbdfb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ public function any($pattern, $callable = null, $extra = [])
public function mount($baseroute, $callable, $extra = [])
{
$Route = clone $this->Route;
$this->Route->setExtra($extra);
$this->Route->addExtra($extra);
// Track current baseroute
$curBaseroute = $this->baseUri;

$this->baseUri .= $baseroute;

// Call the callable
call_user_func($callable);
$callable($this);
$this->Route = $Route;

// Restore original baseroute
Expand Down

0 comments on commit bbdfb4b

Please sign in to comment.