mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Reverted Route::__toString() behavior and added deprecated message for proper use
This commit is contained in:
parent
57de7cc03d
commit
18d53079dd
|
|
@ -25,7 +25,6 @@
|
|||
* Fixed failed login if user attempts to log in with upper case non-english letters
|
||||
* Removed extra authenticated/authorized fields when saving existing user from a form
|
||||
* Fixed `Grav\Framework\Route::__toString()` returning relative URL, not relative route
|
||||
* Fixed `MediaTrait::getMedia()` to return refreshed `Media` object after calling `MediaTrait::clearMediaCache()`
|
||||
|
||||
# v1.6.0-beta.7
|
||||
## 12/14/2018
|
||||
|
|
|
|||
|
|
@ -275,10 +275,13 @@ class Route
|
|||
|
||||
/**
|
||||
* @return string
|
||||
* @deprecated 1.6
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->toString();
|
||||
user_error(__CLASS__ . '::' . __FUNCTION__ . '() will change in the future to return route, not relative url: use ->toString(true) or ->getUri() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->toString(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user