diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-11-17 14:45:23 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-11-17 14:45:23 -0500 |
commit | 7f9ad06854877e6bab1a66e390020529f65b7c81 (patch) | |
tree | 4302b83dc5d14f7a1ba9f5e61389a94320850113 | |
parent | f7eae2bfdd1d7f8d0e69a09ffc6364995a7a0f9c (diff) | |
download | pfsense-7f9ad06854877e6bab1a66e390020529f65b7c81.zip pfsense-7f9ad06854877e6bab1a66e390020529f65b7c81.tar.gz |
Fix hostname in page title. thanks to sullrich@ for pointer
-rwxr-xr-x | usr/local/www/guiconfig.inc | 6 | ||||
-rwxr-xr-x | usr/local/www/head.inc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 8c3b53f..5cf58d8 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -394,11 +394,11 @@ function aliases_sort() { } function gentitle($title) { - global $config, $navlevelsep; + global $navlevelsep; if(!is_array($title)) - return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $title; + return $title; else - return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . join($navlevelsep, $title); + return join($navlevelsep, $title); } function genhtmltitle($title) { diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index 62aee24..e6bf240 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -28,7 +28,7 @@ $pagetitle = gentitle( $pgtitle ); "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title><?=$pagetitle;?></title> + <title><?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel=”apple-touch-icon” href=”/themes/<?php echo $g['theme']; ?>/apple-touch-icon.png”/> <?php if (strpos($_SERVER["SCRIPT_FILENAME"], "wizard.php") !== false && @@ -82,4 +82,4 @@ $pagetitle = gentitle( $pgtitle ); if (!isset($closehead)) echo "</head>"; -?> +?>
\ No newline at end of file |