mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
Merge branch 'master' into 2.5
Conflicts: lib/Cake/Model/Datasource/DboSource.php lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php lib/Cake/Utility/Folder.php lib/Cake/VERSION.txt
This commit is contained in:
commit
d466e00644
48 changed files with 138 additions and 73 deletions
|
@ -700,10 +700,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.
|
||||
* @return CakeRequest or null.
|
||||
* @param boolean $current True to get the current request object, or false to get the first one.
|
||||
* @return CakeRequest|null Null if stack is empty.
|
||||
*/
|
||||
public static function getRequest($current = false) {
|
||||
if ($current) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue