ui: fix previous mod that broken channel configuration editing

I made the change so that /channels returned the imagecache icon
while I was testing some other UI code. Unfortunately that breaks
channel editing. So I've added a second (possibly confusingly named)
field.
This commit is contained in:
Adam Sutton 2013-02-21 14:33:32 +00:00
parent 0fab063340
commit f44baad54c

View file

@ -422,8 +422,10 @@ build_record_channel ( channel_t *ch )
htsmsg_add_str(c, "name", ch->ch_name);
htsmsg_add_u32(c, "chid", ch->ch_id);
if(ch->ch_icon != NULL)
htsmsg_add_imageurl(c, "ch_icon", "imagecache/%d", ch->ch_icon);
if(ch->ch_icon != NULL) {
htsmsg_add_imageurl(c, "chicon", "imagecache/%d", ch->ch_icon);
htsmsg_add_str(c, "ch_icon", ch->ch_icon);
}
buf[0] = 0;
LIST_FOREACH(ctm, &ch->ch_ctms, ctm_channel_link) {