Fixing parse error created in commit [6d092552e5]. Closes #647

This commit is contained in:
ADmad 2010-04-30 03:49:34 +05:30
parent 6d092552e5
commit afd67e534b

View file

@ -322,7 +322,7 @@ class Scaffold extends Object {
if ($this->ScaffoldModel->save($this->controller->data)) {
if ($this->controller->_afterScaffoldSave($action)) {
$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
);
if ($this->_validSession) {
@ -403,9 +403,9 @@ class Scaffold extends Object {
}
} else {
$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
), true));
), true);
if ($this->_validSession) {
$this->controller->Session->setFlash($message);
$this->controller->redirect($this->redirect);