01_FHEMWEB.pm: fix last change for showUsedFiles (Forum #142235)

git-svn-id: https://svn.fhem.de/fhem/trunk@30305 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2025-09-17 14:00:35 +00:00
parent 3eceb38a8e
commit 9f8055092e

View File

@@ -2528,8 +2528,16 @@ FW_style($$)
my @fList;
if($v eq $FW_gplotdir && AttrVal($FW_wname,'showUsedFiles',0)) {
@fList = defInfo('TYPE=SVG','GPLOTFILE');
@fList = map { "$_.gplot" } @fList;
@fList = map { "$_.configDB" } @fList if configDBUsed();
@fList = map {
my $f = "$_.gplot";
$FW_editFileToPath{$f}{path} = "$FW_gplotdir/$_.gplot";
$FW_editFileToPath{$f}{forceType} = "file";
$f } @fList;
@fList = map {
my $f = "$_.configDB";
$FW_editFileToPath{$f}{forceType} = "configDB";
$f } @fList if configDBUsed();
my %fListUnique = map { $_, 1 } @fList;
@fList = sort keys %fListUnique;
} else {