Skip to content

Commit 18bf6c1

Browse files
author
Florian Schaal
committed
FS#3551 - Change title of web pages
1 parent 568b4b1 commit 18bf6c1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

interface/web/index.php

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
$app->tpl->setVar('base64_logo_height', $logo_dimensions[1].'px');
102102
$app->tpl->setVar('base64_logo_txt', $base64_logo_txt);
103103

104+
// Title
105+
$server_config = $app->getconf->get_server_config(1, 'server');
106+
$app->tpl->setVar('server_name', $server_config['hostname']);
107+
104108
$app->tpl_defaults();
105109
$app->tpl->pparse();
106110
?>

interface/web/themes/default/templates/main.tpl.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset='utf-8' />
55

6-
<title><tmpl_var name="app_title"> <tmpl_var name="app_version"></title>
6+
<title><tmpl_var name="server_name"> :: <tmpl_var name="app_title"> [<tmpl_var name="app_version">]</title>
77

88
<meta name='viewport' content='width=device-width, user-scalable=yes'>
99
<meta name='description' lang='en' content='' />
@@ -122,4 +122,4 @@
122122
</script>
123123
</body>
124124

125-
</html>
125+
</html>

0 commit comments

Comments
 (0)