Use rather _SERVER than GLOBALS, should fix bug #973602.

This commit is contained in:
Michal Čihař
2004-06-16 13:34:11 +00:00
parent 59a2ae4d90
commit b932c1c30b
2 changed files with 4 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ if (empty($GLOBALS['is_header_sent'])) {
*/
$title = '';
if ($cfg['ShowHttpHostTitle']) {
$title .= (empty($GLOBALS['cfg']['SetHttpHostTitle']) ? $GLOBALS['HTTP_HOST'] : $GLOBALS['cfg']['SetHttpHostTitle']) . ' >> ';
$title .= (empty($GLOBALS['cfg']['SetHttpHostTitle']) ? $_SERVER['HTTP_HOST'] : $GLOBALS['cfg']['SetHttpHostTitle']) . ' >> ';
}
if (!empty($GLOBALS['cfg']['Server']) && isset($GLOBALS['cfg']['Server']['host'])) {
$title.=str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['host']);