mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing parse error created in commit [6d092552e5
]. Closes #647
This commit is contained in:
parent
6d092552e5
commit
afd67e534b
1 changed files with 3 additions and 3 deletions
|
@ -322,7 +322,7 @@ class Scaffold extends Object {
|
||||||
if ($this->ScaffoldModel->save($this->controller->data)) {
|
if ($this->ScaffoldModel->save($this->controller->data)) {
|
||||||
if ($this->controller->_afterScaffoldSave($action)) {
|
if ($this->controller->_afterScaffoldSave($action)) {
|
||||||
$message = __(
|
$message = __(
|
||||||
sprintf('The %1$s has been %2$s', Inflector::humanize($this->modelKey), $success),
|
sprintf('The %1$s has been %2$s', Inflector::humanize($this->modelKey), $success),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if ($this->_validSession) {
|
if ($this->_validSession) {
|
||||||
|
@ -403,9 +403,9 @@ class Scaffold extends Object {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$message = __(sprintf(
|
$message = __(sprintf(
|
||||||
'There was an error deleting the %1$s with id: %2$d',
|
'There was an error deleting the %1$s with id: %2$d',
|
||||||
Inflector::humanize($this->modelClass), $id
|
Inflector::humanize($this->modelClass), $id
|
||||||
), true));
|
), true);
|
||||||
if ($this->_validSession) {
|
if ($this->_validSession) {
|
||||||
$this->controller->Session->setFlash($message);
|
$this->controller->Session->setFlash($message);
|
||||||
$this->controller->redirect($this->redirect);
|
$this->controller->redirect($this->redirect);
|
||||||
|
|
Loading…
Add table
Reference in a new issue