Fix error from previous commit.

This commit is contained in:
mark_story 2012-03-03 20:22:21 -05:00
parent c5be343b72
commit 9d1e88ba13

View file

@ -140,7 +140,7 @@ class Scaffold {
'title_for_layout', 'modelClass', 'primaryKey', 'displayField', 'singularVar', 'pluralVar',
'singularHumanName', 'pluralHumanName', 'scaffoldFields', 'associations'
));
$this->set('title_for_layout', $title);
$this->controller->set('title_for_layout', $title);
if ($this->controller->viewClass) {
$this->controller->viewClass = 'Scaffold';