Updating redirects in Scaffold.

This commit is contained in:
mark_story 2009-09-29 00:56:25 -04:00
parent 070bbb5d0e
commit 2fe20a2264

View file

@ -386,7 +386,7 @@ class Scaffold extends Object {
$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 @@ class Scaffold extends Object {
$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 @@ class Scaffold extends Object {
$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();
}
}