Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: show user-defined server name instead tvh version in title
  • Loading branch information
perexg committed Sep 22, 2015
1 parent 8343aa9 commit 97d4766
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/webui/extjs.c
Expand Up @@ -31,6 +31,7 @@
#include "htsmsg_json.h"

#include "tvheadend.h"
#include "config.h"
#include "http.h"
#include "webui.h"

Expand Down Expand Up @@ -132,12 +133,12 @@ Ext.onReady(tvheadend.app.init, tvheadend.app);\
"\tmargin:5px;\n"
"}\n"
"</style>\n"
"<title>HTS Tvheadend %s</title>\n"
"<title>%s</title>\n"
"</head>\n"
"<body>\n"
"<div id=\"systemlog\"></div>\n"
"</body></html>\n",
tvheadend_version);
config.server_name);

http_output_html(hc);
return 0;
Expand All @@ -155,7 +156,7 @@ extjs_livetv(http_connection_t *hc, const char *remain, void *opaque)
htsbuf_qprintf(hq, "<!DOCTYPE html>\n");
htsbuf_qprintf(hq, "<html>\n");
htsbuf_qprintf(hq, "<head>\n");
htsbuf_qprintf(hq, "<title>HTS Tvheadend %s</title>\n", tvheadend_version);
htsbuf_qprintf(hq, "<title>%s</title>\n", config.server_name);

if (tvheadend_webui_debug) {

Expand Down

0 comments on commit 97d4766

Please sign in to comment.