Browse files

Fixing title_for_layout not being set in apps made with bake. Fixes #567

  • Loading branch information...
1 parent 431b1f2 commit 540157bbfda860eabbe966044c3188e72d02556a @markstory markstory committed Apr 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/console/templates/skel/controllers/pages_controller.php
View
4 cake/console/templates/skel/controllers/pages_controller.php
@@ -76,9 +76,9 @@ 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));
}
}

0 comments on commit 540157b

Please sign in to comment.