mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
01_FHEMWEB.pm: allow @color in stateFormat (Forum #54466)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11658 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ebdb521aa1
commit
4fb6c20164
@ -2380,10 +2380,11 @@ FW_readIcons($)
|
|||||||
sub
|
sub
|
||||||
FW_iconName($)
|
FW_iconName($)
|
||||||
{
|
{
|
||||||
my ($name)= @_;
|
my ($oname)= @_;
|
||||||
|
my $name = $oname;
|
||||||
$name =~ s/@.*//;
|
$name =~ s/@.*//;
|
||||||
foreach my $pe (@FW_iconDirs) {
|
foreach my $pe (@FW_iconDirs) {
|
||||||
return $name if($pe && $FW_icons{$pe} && $FW_icons{$pe}{$name});
|
return $oname if($pe && $FW_icons{$pe} && $FW_icons{$pe}{$name});
|
||||||
}
|
}
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user