mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Fix for custom titles instead of titles taken from page name
This commit is contained in:
parent
417971dbf5
commit
cdc5726121
@ -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">';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user