Browse files

Updating redirects in Scaffold.

  • Loading branch information...
1 parent 070bbb5 commit 2fe20a226439b57916864a9de806241b58ceaf26 @markstory markstory committed Sep 29, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/controller/scaffold.php
View
6 cake/libs/controller/scaffold.php
@@ -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();
}
@@ -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 {
@@ -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();
}
}

0 comments on commit 2fe20a2

Please sign in to comment.