Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 540157bbfda860eabbe966044c3188e72d02556a 1 parent 431b1f2
@markstory markstory authored
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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.