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:
phpnut 2007-06-01 23:04:41 +00:00
parent 88dec237a7
commit 800961fc97

View file

@ -535,7 +535,11 @@ class Controller extends Object {
if ($name == 'title') {
$this->pageTitle = $value;
} else {
$this->viewVars[Inflector::variable($name)] = $value;
if($two === null) {
$this->viewVars[Inflector::variable($name)] = $value;
} else {
$this->viewVars[$name] = $value;
}
}
}
}