Skip to content

Commit

Permalink
Route->uri() should always add the default parameters, fixes #1970
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Aug 20, 2009
1 parent 3f6919b commit f55d3ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/kohana/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ public function uri(array $params = NULL)
// Use the default parameters
$params = $this->_defaults;
}
else
{
// Add the default parameters
$params += $this->_defaults;
}

// Start with the routed URI
$uri = $this->_uri;
Expand Down

0 comments on commit f55d3ec

Please sign in to comment.