mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating redirects in Scaffold.
This commit is contained in:
parent
070bbb5d0e
commit
2fe20a2264
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue