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

@@ -15,6 +15,7 @@ $Source$
record. record.
* tbl_change.php, libraries/tbl_change.js: Uncheck Ignore checkbox for * tbl_change.php, libraries/tbl_change.js: Uncheck Ignore checkbox for
inserting when multiple inserts after changing value (RFE #749733). inserting when multiple inserts after changing value (RFE #749733).
* header.inc.php: Simplified title generating.
2004-05-12 Marc Delisle <lem9@users.sourceforge.net> 2004-05-12 Marc Delisle <lem9@users.sourceforge.net>
* db_details_structure.php: bug #951143, undefined $header_url_qry * db_details_structure.php: bug #951143, undefined $header_url_qry

View File

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