forked from hummypkg/webif
Remove duplicate code
This commit is contained in:
parent
1a67bc68ca
commit
3deb1cedff
|
@ -138,7 +138,7 @@ proc {epg channeliconpath} {name} {
|
|||
}
|
||||
|
||||
proc {epg channelicon} {name {width 0} {style ""}} {
|
||||
set str "<img src=\"/img/channels/out/$name.png\"";
|
||||
set str "<img src=\"[epg channeliconpath $name]\"";
|
||||
if {$width > 0} { append str " width=$width" }
|
||||
if {$style ne ""} { append str " style=\"$style\"" }
|
||||
append str " alt=\"\">"
|
||||
|
@ -146,11 +146,7 @@ proc {epg channelicon} {name {width 0} {style ""}} {
|
|||
}
|
||||
|
||||
epg method channel_icon {{width 0} {style ""}} {
|
||||
set str "<img src=\"/img/channels/out/$channel_name.png\"";
|
||||
if {$width > 0} { append str " width=$width" }
|
||||
if {$style ne ""} { append str " style=\"$style\"" }
|
||||
append str " alt=\"\">"
|
||||
return $str
|
||||
return [epg channelicon $channel_name $width $style]
|
||||
}
|
||||
|
||||
epg method get_channel_info {} {
|
||||
|
|
Loading…
Reference in New Issue