mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
01_FHEMWEB.pm: ignore dotfiles in the icon directory (Forum #93949)
git-svn-id: https://svn.fhem.de/fhem/trunk@17882 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e079296db7
commit
cde9c5856f
@ -2421,6 +2421,7 @@ FW_iconTable($$$$)
|
|||||||
my %icoList = ();
|
my %icoList = ();
|
||||||
foreach my $style (@FW_iconDirs) {
|
foreach my $style (@FW_iconDirs) {
|
||||||
foreach my $imgName (sort keys %{$FW_icons{$style}}) {
|
foreach my $imgName (sort keys %{$FW_icons{$style}}) {
|
||||||
|
next if($imgName=~m+^\.+); # Skip dot files
|
||||||
$imgName =~ s/\.[^.]*$//; # Cut extension
|
$imgName =~ s/\.[^.]*$//; # Cut extension
|
||||||
next if(!$FW_icons{$style}{$imgName}); # Dont cut it twice: FS20.on.png
|
next if(!$FW_icons{$style}{$imgName}); # Dont cut it twice: FS20.on.png
|
||||||
next if($FW_icons{$style}{$imgName} !~ m/$imgName/); # Skip alias
|
next if($FW_icons{$style}{$imgName} !~ m/$imgName/); # Skip alias
|
||||||
|
Loading…
x
Reference in New Issue
Block a user