mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
commit
6f9efbf386
1 changed files with 3 additions and 3 deletions
|
@ -694,10 +694,10 @@ class Router {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the either the current request object, or the first one.
|
* Gets the current request object, or the first one.
|
||||||
*
|
*
|
||||||
* @param boolean $current Whether you want the request from the top of the stack or the first one.
|
* @param boolean $current True to get the current request object, or false to get the first one.
|
||||||
* @return CakeRequest or null.
|
* @return CakeRequest|null Null if stack is empty.
|
||||||
*/
|
*/
|
||||||
public static function getRequest($current = false) {
|
public static function getRequest($current = false) {
|
||||||
if ($current) {
|
if ($current) {
|
||||||
|
|
Loading…
Reference in a new issue