mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing the ability to set layout, and viewPath with Request parameters. This feature was untested and undocumented. Furthermore, it should not be the responsibility of the dispatcher to set these parameters.
This commit is contained in:
parent
4f5ce7f94c
commit
1f5d579ab6
1 changed files with 0 additions and 10 deletions
|
@ -167,16 +167,6 @@ class Dispatcher extends Object {
|
|||
if (!empty($this->params['bare'])) {
|
||||
$controller->autoLayout = false;
|
||||
}
|
||||
if (array_key_exists('layout', $this->params)) {
|
||||
if (empty($this->params['layout'])) {
|
||||
$controller->autoLayout = false;
|
||||
} else {
|
||||
$controller->layout = $this->params['layout'];
|
||||
}
|
||||
}
|
||||
if (isset($this->params['viewPath'])) {
|
||||
$controller->viewPath = $this->params['viewPath'];
|
||||
}
|
||||
return $this->_invoke($controller, $this->params);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue