mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 13:32:44 +00:00
Merge remote-tracking branch 'origin/2.1' into 2.2
Conflicts: lib/Cake/Model/Model.php lib/Cake/Test/Case/Model/ModelValidationTest.php
This commit is contained in:
commit
51635c2ca6
9 changed files with 87 additions and 15 deletions
|
@ -319,6 +319,11 @@ class View extends Object {
|
|||
}
|
||||
$this->_eventManager = $controller->getEventManager();
|
||||
}
|
||||
if (empty($this->request) && !($this->request = Router::getRequest(true))) {
|
||||
$this->request = new CakeRequest(null, false);
|
||||
$this->request->base = '';
|
||||
$this->request->here = $this->request->webroot = '/';
|
||||
}
|
||||
if (is_object($controller) && isset($controller->response)) {
|
||||
$this->response = $controller->response;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue