]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: show user-defined server name instead tvh version in title
authorJaroslav Kysela <perex@perex.cz>
Tue, 22 Sep 2015 10:43:44 +0000 (12:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 22 Sep 2015 10:43:44 +0000 (12:43 +0200)
src/webui/extjs.c

index d70e7aa37aa45ca58efc1162ee7ac4149119ee39..32057764b3fb24ca95116d36e9a1f1ff653bb2f8 100644 (file)
@@ -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"
                 "</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;
@@ -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) {