Skip to content

Commit

Permalink
Fixing incorrectly nested sprintf + __ call. Refs #1305
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 30, 2011
1 parent b30f405 commit 6db8515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/scaffold.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 6db8515

Please sign in to comment.