Permalink
Browse files

Removing the ability to set layout, and viewPath with Request paramet…

…ers. This feature was untested and undocumented. Furthermore, it should not be the responsibility of the dispatcher to set these parameters.
  • Loading branch information...
1 parent 4f5ce7f commit 1f5d579ab614f4d4b566d7720ad55dbcf8d80b1d @markstory markstory committed Jan 15, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −10 cake/dispatcher.php
View
@@ -167,16 +167,6 @@ function dispatch($url = null, $additionalParams = array()) {
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);
}

0 comments on commit 1f5d579

Please sign in to comment.