Skip to content

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kayalion committed Apr 21, 2017
2 parents ed7d7ef + 6453ceb commit 98e7726
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.4.0 - 2017-04-21
###
- added $parse argument to getPath in Url class to replace the variables with their values

## 1.3.3 - 2017-02-08
### Updated
- Enforce route slash
Expand Down
8 changes: 7 additions & 1 deletion src/ride/library/router/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,15 @@ protected function setPath($path) {

/**
* Gets the path of this URL
* @param boolean $parse Set to true to replace the variables with their
* values
* @return string
*/
public function getPath() {
public function getPath($parse = false) {
if ($parse) {
return $this->parsePath();
}

return $this->path;
}

Expand Down

0 comments on commit 98e7726

Please sign in to comment.