diff --git a/cake/libs/controller/scaffold.php b/cake/libs/controller/scaffold.php index d809e55a3..3490c7169 100644 --- a/cake/libs/controller/scaffold.php +++ b/cake/libs/controller/scaffold.php @@ -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(); } }