Fix for custom titles instead of titles taken from page name

This commit is contained in:
BuildTools 2016-02-11 21:43:33 +01:00
parent 417971dbf5
commit cdc5726121

View File

@ -265,15 +265,11 @@ class Page {
}
function print_title() {
$title = $this->title();
$title = $this->title;
$name = $this->settings->name;
echo "<title>$title - $name</title>";
}
function title() {
return ucfirst($this->name);
}
function print_table_rows($row, $array, $print_headers = true) {
if ($print_headers && !$this->table_headers_printed) {
$headers = array_keys($array);
@ -311,7 +307,7 @@ class Page {
}
function print_page_header($container_start = true) {
$title = $this->title();
$title = $this->title;
if ($container_start) {
echo '<div class="container">';
}