Fixing incorrectly nested sprintf + __ call. Refs #1305

This commit is contained in:
mark_story 2011-01-30 12:25:40 -05:00
parent b30f40582e
commit 6db8515e60

View file

@ -223,7 +223,7 @@ class Scaffold extends Object {
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) {