From: Jaroslav Kysela Date: Tue, 22 Sep 2015 10:43:44 +0000 (+0200) Subject: webui: show user-defined server name instead tvh version in title X-Git-Tag: v4.2.1~2077 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d4766df7602d85b0d797702674bfcf381d6933;p=thirdparty%2Ftvheadend.git webui: show user-defined server name instead tvh version in title --- diff --git a/src/webui/extjs.c b/src/webui/extjs.c index d70e7aa37..32057764b 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -31,6 +31,7 @@ #include "htsmsg_json.h" #include "tvheadend.h" +#include "config.h" #include "http.h" #include "webui.h" @@ -132,12 +133,12 @@ Ext.onReady(tvheadend.app.init, tvheadend.app);\ "\tmargin:5px;\n" "}\n" "\n" - "HTS Tvheadend %s\n" + "%s\n" "\n" "\n" "
\n" "\n", - tvheadend_version); + config.server_name); http_output_html(hc); return 0; @@ -155,7 +156,7 @@ extjs_livetv(http_connection_t *hc, const char *remain, void *opaque) htsbuf_qprintf(hq, "\n"); htsbuf_qprintf(hq, "\n"); htsbuf_qprintf(hq, "\n"); - htsbuf_qprintf(hq, "HTS Tvheadend %s\n", tvheadend_version); + htsbuf_qprintf(hq, "%s\n", config.server_name); if (tvheadend_webui_debug) {