diff --git a/inc/page.php b/inc/page.php index a5eb88c..4367330 100644 --- a/inc/page.php +++ b/inc/page.php @@ -367,8 +367,10 @@ class Page { echo ""; } - function print_header($container_start = true) { - $title = $this->title; + function print_header($container_start = true, $title = null) { + if ($title === null) { + $title = $this->title; + } if ($container_start) { echo '
'; } diff --git a/info.php b/info.php index 79a6f0d..2fc9953 100644 --- a/info.php +++ b/info.php @@ -146,19 +146,21 @@ if ($st->execute(array($id))) { $page->name = $page->title = "$name #$id"; $page->print_title(); + $header = $page->name; + if (!($info instanceof KickInfo)) { $style = 'style="margin-left: 13px; font-size: 16px;"'; $active = $page->active($row); if ($active === true) { - $page->name .= "Active"; + $header .= "Active"; } else { - $page->name .= "Inactive"; + $header .= "Inactive"; } if ($permanent) { - $page->name .= "Permanent"; + $header .= "Permanent"; } } - $page->print_header(); + $page->print_header($header); $map = $info->basic_info($row, $player_name);