Skip to content

Commit

Permalink
Fix layout path value causing View to generate layout paths with extr…
Browse files Browse the repository at this point in the history
…a slash at end
  • Loading branch information
ADmad committed Jun 10, 2012
1 parent 5ba5f90 commit fa0d1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Error/ExceptionRenderer.php
Expand Up @@ -291,8 +291,8 @@ protected function _outputMessage($template) {
* @return void
*/
protected function _outputMessageSafe($template) {
$this->controller->layoutPath = '';
$this->controller->subDir = '';
$this->controller->layoutPath = null;
$this->controller->subDir = null;
$this->controller->viewPath = 'Errors/';
$this->controller->viewClass = 'View';
$this->controller->layout = 'error';
Expand Down

0 comments on commit fa0d1c7

Please sign in to comment.