From cdc5726121ec1a7987379ac35e626aecc6451175 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 11 Feb 2016 21:43:33 +0100 Subject: [PATCH] Fix for custom titles instead of titles taken from page name --- inc/page.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/inc/page.php b/inc/page.php index f012e88..ff2a24a 100644 --- a/inc/page.php +++ b/inc/page.php @@ -265,15 +265,11 @@ class Page { } function print_title() { - $title = $this->title(); + $title = $this->title; $name = $this->settings->name; echo "$title - $name"; } - 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 '
'; }