mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing incorrectly nested sprintf + __ call. Refs #1305
This commit is contained in:
parent
b30f40582e
commit
6db8515e60
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue