mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding changes to Controller::set() to force $camelBacked variables only if second params is null
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5231 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
88dec237a7
commit
800961fc97
1 changed files with 5 additions and 1 deletions
|
@ -535,7 +535,11 @@ class Controller extends Object {
|
||||||
if ($name == 'title') {
|
if ($name == 'title') {
|
||||||
$this->pageTitle = $value;
|
$this->pageTitle = $value;
|
||||||
} else {
|
} else {
|
||||||
$this->viewVars[Inflector::variable($name)] = $value;
|
if($two === null) {
|
||||||
|
$this->viewVars[Inflector::variable($name)] = $value;
|
||||||
|
} else {
|
||||||
|
$this->viewVars[$name] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue