mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
a8179153ac
commit
c8be7232f0
@ -235,7 +235,7 @@ FW_Define($$)
|
|||||||
return "Usage: define <name> FHEMWEB [IPV6:]<tcp-portnr> [global]"
|
return "Usage: define <name> FHEMWEB [IPV6:]<tcp-portnr> [global]"
|
||||||
if($port !~ m/^(IPV6:)?\d+$/ || ($global && $global ne "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") {
|
foreach my $pe ("fhemSVG", "openautomation", "default") {
|
||||||
FW_readIcons($pe);
|
FW_readIcons($pe);
|
||||||
@ -2152,6 +2152,8 @@ FW_style($$)
|
|||||||
@fList = defInfo('TYPE=SVG','GPLOTFILE');
|
@fList = defInfo('TYPE=SVG','GPLOTFILE');
|
||||||
@fList = map { "$_.gplot" } @fList;
|
@fList = map { "$_.gplot" } @fList;
|
||||||
@fList = map { "$_.configDB" } @fList if configDBUsed();
|
@fList = map { "$_.configDB" } @fList if configDBUsed();
|
||||||
|
my %fListUnique = map { $_, 1 } @fList;
|
||||||
|
@fList = sort keys %fListUnique;
|
||||||
} else {
|
} else {
|
||||||
@fList = FW_fileList("$v/$re");
|
@fList = FW_fileList("$v/$re");
|
||||||
}
|
}
|
||||||
@ -3120,7 +3122,7 @@ FW_closeInactiveClients()
|
|||||||
!$defs{$dev}{LASTACCESS} || $defs{$dev}{inform} ||
|
!$defs{$dev}{LASTACCESS} || $defs{$dev}{inform} ||
|
||||||
($now - $defs{$dev}{LASTACCESS}) < 60);
|
($now - $defs{$dev}{LASTACCESS}) < 60);
|
||||||
Log3 $FW_wname, 4, "Closing inactive connection $dev";
|
Log3 $FW_wname, 4, "Closing inactive connection $dev";
|
||||||
FW_Undef($defs{$dev}, "");
|
FW_Undef($defs{$dev}, undef);
|
||||||
delete $defs{$dev};
|
delete $defs{$dev};
|
||||||
delete $attr{$dev};
|
delete $attr{$dev};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user