2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

longpollSVG fix

git-svn-id: https://svn.fhem.de/fhem/trunk@3319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-06-23 13:07:03 +00:00
parent 915df8cbb2
commit d3ed3ee144
2 changed files with 6 additions and 4 deletions

View File

@ -107,7 +107,7 @@ SVG_render($$$$$$$$$)
# Keep only the Filter part of the #FileLog
$flog = join(" ", map { my @a=split(":",$_);
$a[1]=~s/\.[^\.]*$//; $a[1]; } @{$flog});
$flog = AttrVal($parent_name, "longpollSVG", 0) ? "flog=\"$flog\"" : "";
$flog = AttrVal($parent_name, "longpollSVG", 0) ? "flog=\" $flog \"" : "";
######################
# Html Header

View File

@ -384,6 +384,11 @@ weblink_WriteGplot($)
my ($arg) = @_;
FW_digestCgi($arg);
if(!defined($FW_webArgs{cl_0})) {
return("text/html;",
"missing data in logfile: won't write incomplete .gplot definition");
}
my $hasTl;
for(my $i=0; $i <= 8; $i++) {
$hasTl = 1 if($FW_webArgs{"title_$i"});
@ -434,9 +439,6 @@ weblink_WriteGplot($)
print FH "plot ".join(",\\\n ", @plot)."\n";
close(FH);
#foreach my $k (sort keys %FW_webArgs) {
# Log 1, "$k: $FW_webArgs{$k}";
#}
return (undef, "continue");
}