Permalink
Browse files

Changing variable $title to $title_for_layout. Closes #511

  • Loading branch information...
1 parent 9334aea commit 12e608c671a403a3481f1f82a78ed1af2cd5a36b @ADmad ADmad committed Mar 25, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/controller/pages_controller.php
View
6 cake/libs/controller/pages_controller.php
@@ -67,7 +67,7 @@ function display() {
if (!$count) {
$this->redirect('/');
}
- $page = $subpage = $title = null;
+ $page = $subpage = $title_for_layout = null;
if (!empty($path[0])) {
$page = $path[0];
@@ -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 12e608c

Please sign in to comment.