2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

01_FHEMWEB.pm: FILEWRITE Event from betateilchen (Forum #32592)

git-svn-id: https://svn.fhem.de/fhem/trunk@7667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-01-23 10:47:47 +00:00
parent 0a24f2bf34
commit f130758a3a

View File

@ -1376,7 +1376,8 @@ FW_showRoom()
$icon = FW_makeImage($icon,$icon,"icon") . " " if($icon);
if($FW_hiddenroom{detail}) {
FW_pO "<td><div class=\"col1\">$icon$devName</div></td>" if(!$usuallyAtEnd{$d});
FW_pO "<td><div class=\"col1\">$icon$devName</div></td>"
if(!$usuallyAtEnd{$d});
} else {
FW_pH "detail=$d", "$icon$devName", 1, "col1" if(!$usuallyAtEnd{$d});
}
@ -1775,6 +1776,7 @@ FW_style($$)
}
my $ret = FW_fC("rereadcfg") if($filePath eq $attr{global}{configfile});
$ret = FW_fC("reload $fileName") if($fileName =~ m,\.pm$,);
DoTrigger("global", "FILEWRITE $filePath", 1) if(!$ret); # Forum #32592
$ret = ($ret ? "<h3>ERROR:</h3><b>$ret</b>" :
"Saved the file $fileName to $forceType");
FW_style("style list", $ret);