From: Adam Sutton Date: Wed, 20 Feb 2013 11:55:13 +0000 (+0000) Subject: imagecache: fix problem with imagecaching in the UI display X-Git-Tag: v3.9~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92d0450ccaecf4dd031a3b3bf3e9d8bcbcaeb14d;p=thirdparty%2Ftvheadend.git imagecache: fix problem with imagecaching in the UI display --- diff --git a/src/imagecache.h b/src/imagecache.h index c96b31868..225d717e6 100644 --- a/src/imagecache.h +++ b/src/imagecache.h @@ -52,6 +52,7 @@ int imagecache_open ( uint32_t id ); uint32_t _id = imagecache_get_id(_url);\ if (_id) {\ snprintf(_tmp, sizeof(_tmp), _fmt, _id);\ + htsmsg_add_str(_msg, _fld, _tmp);\ } else {\ htsmsg_add_str(_msg, _fld, _url);\ }\ diff --git a/src/webui/extjs.c b/src/webui/extjs.c index 45ecfed10..55c30a288 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -423,7 +423,7 @@ build_record_channel ( channel_t *ch ) htsmsg_add_u32(c, "chid", ch->ch_id); if(ch->ch_icon != NULL) - htsmsg_add_str(c, "ch_icon", ch->ch_icon); + htsmsg_add_imageurl(c, "ch_icon", "imagecache/%d", ch->ch_icon); buf[0] = 0; LIST_FOREACH(ctm, &ch->ch_ctms, ctm_channel_link) {