Merge pull request #3 from deltaflyer4747/master

Fix for custom titles instead of titles taken from page name
This commit is contained in:
Ruan 2016-02-12 06:45:13 +02:00
commit 9c9fd1f3de

View File

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