mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 02:31:53 +00:00
SVG: configDB Patch from betateilchen (forum #22690)
git-svn-id: https://svn.fhem.de/fhem/trunk@5607 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a5950dbb58
commit
0fbee9487f
@ -99,13 +99,16 @@ SVG_Set($@)
|
||||
$hash->{GPLOTFILE} . ":".
|
||||
$hash->{LOGFILE};
|
||||
|
||||
open(SFH, $srcName) || return "Can't open $srcName: $!";
|
||||
open(DFH, ">$dstName") || return "Can't open $dstName: $!";
|
||||
while(my $l = <SFH>) {
|
||||
print DFH $l;
|
||||
if(configDBUsed()) { # copy template.gplot inside configDB
|
||||
_cfgDB_Writefile($dstName,_cfgDB_Readfile($srcName));
|
||||
} else {
|
||||
open(SFH, $srcName) || return "Can't open $srcName: $!";
|
||||
open(DFH, ">$dstName") || return "Can't open $dstName: $!";
|
||||
while(my $l = <SFH>) {
|
||||
print DFH $l;
|
||||
}
|
||||
close(SFH); close(DFH);
|
||||
}
|
||||
close(SFH); close(DFH);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user