Skip to content

Commit

Permalink
Updating redirects in Scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 29, 2009
1 parent 070bbb5 commit 2fe20a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/controller/scaffold.php
Expand Up @@ -386,7 +386,7 @@ function __scaffoldDelete($params = array()) {
$this->controller->Session->setFlash($message);
$this->controller->redirect($this->redirect);
} else {
$this->controller->flash($message, '/' . Inflector::underscore($this->controller->viewPath));
$this->controller->flash($message, $this->redirect);
return $this->_output();
}

Expand All @@ -399,7 +399,7 @@ function __scaffoldDelete($params = array()) {
$this->controller->Session->setFlash($message);
$this->controller->redirect($this->redirect);
} else {
$this->controller->flash($message, '/' . $this->viewPath);
$this->controller->flash($message, $this->redirect);
return $this->_output();
}
} else {
Expand All @@ -411,7 +411,7 @@ function __scaffoldDelete($params = array()) {
$this->controller->Session->setFlash($message);
$this->controller->redirect($this->redirect);
} else {
$this->controller->flash($message, '/' . $this->viewPath);
$this->controller->flash($message, $this->redirect);
return $this->_output();
}
}
Expand Down

0 comments on commit 2fe20a2

Please sign in to comment.