Applying patch of ticket #2560

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5040 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2007-05-11 13:05:55 +00:00
parent 6e4f66555d
commit 4513007f35

View file

@ -184,7 +184,7 @@ class Scaffold extends Object {
$this->controller->set('viewPath', $this->viewPath);
$this->controller->set('humanSingularName', Inflector::humanize($this->modelKey));
$this->controller->set('humanPluralName', Inflector::humanize($this->viewPath));
$alias = null;
$alias = array();
if(!empty($this->ScaffoldModel->alias)) {
$alias = array_combine(array_keys($this->ScaffoldModel->alias), array_keys($this->ScaffoldModel->alias));
}