Simplified title generating.

This commit is contained in:
Michal Čihař
2004-05-13 15:52:41 +00:00
parent 914538b5c2
commit c6f46b6d52
2 changed files with 2 additions and 6 deletions

View File

@@ -39,12 +39,7 @@ if (empty($GLOBALS['is_header_sent'])) {
/* the new one
* 2004-05-05: replaced by Michael Keck (mkkeck)
*/
$title = 'PMA | ';
if (!isset($cfg['SetHttpHostTitle']) || empty($cfg['SetHttpHostTitle'])){
if (isset($HTTP_HOST)){
$cfg['SetHttpHostTitle'] = $HTTP_HOST;
}
}
$title = '';
if ($cfg['ShowHttpHostTitle']) {
$title .= (empty($cfg['SetHttpHostTitle']) ? $HTTP_HOST : $cfg['SetHttpHostTitle']) . ' >> ';
}