Browse files

Fixing incorrectly nested sprintf + __ call. Refs #1305

  • Loading branch information...
1 parent b30f405 commit 6db8515e60ae0031af4ea0e9d50099c6f1bb2f1e @markstory markstory committed Jan 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/controller/scaffold.php
View
2 cake/libs/controller/scaffold.php
@@ -223,7 +223,7 @@ function _output() {
function __scaffoldView($params) {
if ($this->controller->_beforeScaffold('view')) {
- $message = __(sprintf("No id set for %s::view()", Inflector::humanize($this->modelKey)), true);
+ $message = sprintf(__("No id set for %s::view()", true), Inflector::humanize($this->modelKey));
if (isset($params['pass'][0])) {
$this->ScaffoldModel->id = $params['pass'][0];
} elseif ($this->_validSession) {

0 comments on commit 6db8515

Please sign in to comment.