From: Andreas Ă–man Date: Sun, 2 Dec 2007 16:33:36 +0000 (+0000) Subject: add channel groups at tail X-Git-Tag: 2.12~1315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec373fe1633449eb4e04ce7352455778c794c043;p=thirdparty%2Ftvheadend.git add channel groups at tail --- diff --git a/channels.c b/channels.c index 4bda81c91..29f228cfc 100644 --- a/channels.c +++ b/channels.c @@ -69,7 +69,7 @@ channel_group_find(const char *name, int create) TAILQ_INIT(&tcg->tcg_channels); - TAILQ_INSERT_HEAD(&all_channel_groups, tcg, tcg_global_link); + TAILQ_INSERT_TAIL(&all_channel_groups, tcg, tcg_global_link); return tcg; } diff --git a/htmlui.c b/htmlui.c index a7c35544d..6ff41fd59 100644 --- a/htmlui.c +++ b/htmlui.c @@ -1255,19 +1255,6 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque) top_menu(hc, &tq); - tcp_qprintf(&tq, "
"); - - box_top(&tq, "box"); - tcp_qprintf(&tq, "
" - " " - "" - "
"); - - box_bottom(&tq); - tcp_qprintf(&tq, "

\r\n"); - - TAILQ_FOREACH(tcg, &all_channel_groups, tcg_global_link) { tcp_qprintf(&tq, "
"); @@ -1295,6 +1282,20 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque) } + tcp_qprintf(&tq, ""); + + box_top(&tq, "box"); + tcp_qprintf(&tq, "
" + " " + "" + "
"); + + box_bottom(&tq); + tcp_qprintf(&tq, "

\r\n"); + + + http_output_queue(hc, &tq, "text/html; charset=UTF-8"); return 0; }