Skip to content

Commit

Permalink
Fixing parse error created in commit [6d09255]. Closes #647
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 29, 2010
1 parent 6d09255 commit afd67e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/controller/scaffold.php
Expand Up @@ -322,7 +322,7 @@ function __scaffoldSave($params = array(), $action = 'edit') {
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) {
Expand Down Expand Up @@ -403,9 +403,9 @@ function __scaffoldDelete($params = array()) {
}
} 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);
Expand Down

0 comments on commit afd67e5

Please sign in to comment.