forked from hummypkg/webif
1
0
Fork 0

Remove duplicate code

This commit is contained in:
prpr 2023-12-03 10:28:34 +00:00
parent 1a67bc68ca
commit 3deb1cedff
1 changed files with 2 additions and 6 deletions

View File

@ -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 {} {