01_FHEMWEB.pm: fix reload & showUsedFiles by betateilchen (Forum #81824)

git-svn-id: https://svn.fhem.de/fhem/trunk@15727 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-30 13:44:08 +00:00
parent a8179153ac
commit c8be7232f0

View File

@ -235,7 +235,7 @@ FW_Define($$)
return "Usage: define <name> FHEMWEB [IPV6:]<tcp-portnr> [global]"
if($port !~ m/^(IPV6:)?\d+$/ || ($global && $global ne "global"));
FW_Undef($hash) if($hash->{OLDDEF}); # modify
FW_Undef($hash, undef) if($hash->{OLDDEF}); # modify
foreach my $pe ("fhemSVG", "openautomation", "default") {
FW_readIcons($pe);
@ -2152,6 +2152,8 @@ FW_style($$)
@fList = defInfo('TYPE=SVG','GPLOTFILE');
@fList = map { "$_.gplot" } @fList;
@fList = map { "$_.configDB" } @fList if configDBUsed();
my %fListUnique = map { $_, 1 } @fList;
@fList = sort keys %fListUnique;
} else {
@fList = FW_fileList("$v/$re");
}
@ -3120,7 +3122,7 @@ FW_closeInactiveClients()
!$defs{$dev}{LASTACCESS} || $defs{$dev}{inform} ||
($now - $defs{$dev}{LASTACCESS}) < 60);
Log3 $FW_wname, 4, "Closing inactive connection $dev";
FW_Undef($defs{$dev}, "");
FW_Undef($defs{$dev}, undef);
delete $defs{$dev};
delete $attr{$dev};
}