01_FHEMWEB.pm: fix for removing dotfile-images (Forum #93949)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17889 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-12-03 18:02:31 +00:00
parent 887cd3b5e3
commit ab9b39fe40

View File

@ -2421,7 +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 next if($imgName =~ m+^\.+ || $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