Skip to content

Commit

Permalink
Fixing title_for_layout not being set in apps made with bake. Fixes #567
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 11, 2010
1 parent ed02b0f commit af71787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/console/templates/skel/controllers/pages_controller.php
Expand Up @@ -76,9 +76,9 @@ public function display() {
$subpage = $path[1];
}
if (!empty($path[$count - 1])) {
$title = Inflector::humanize($path[$count - 1]);
$title_for_layout = Inflector::humanize($path[$count - 1]);
}
$this->set(compact('page', 'subpage', 'title'));
$this->set(compact('page', 'subpage', 'title_for_layout'));
$this->render(implode('/', $path));
}
}
Expand Down

0 comments on commit af71787

Please sign in to comment.