Fix to support SVG icons for servers

This commit is contained in:
iliajie
2022-08-01 18:11:56 +03:00
parent 2f0981a7d4
commit 713272e726

View File

@@ -108,7 +108,9 @@ elsif (@servers) {
@befores = map { &ui_checkbox("d", $_->{'id'}) } @servers;
}
my @titles = map { &make_iconname($_) } @servers;
my @icons = map { "images/$_->{'type'}.gif" } @servers;
my @icons = map { -r "images/$_->{'type'}.svg" ?
"images/$_->{'type'}.svg" :
"images/$_->{'type'}.gif" } @servers;
my @links = map { !$access{'links'} ? undef :
$_->{'user'} || $_->{'autouser'} ?
"link.cgi/$_->{'id'}/" : &make_url($_) } @servers;