mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
98_SVG.pm: "set readonly" in .gplot File (Forum #126561)
git-svn-id: https://svn.fhem.de/fhem/trunk@25777 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ebb22507de
commit
48e37d4251
@ -529,7 +529,9 @@ SVG_PEdit($$$$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ret .= "<tr class=\"".(($r++&1)?"odd":"even")."\"><td colspan=\"3\">";
|
$ret .= "<tr class=\"".(($r++&1)?"odd":"even")."\"><td colspan=\"3\">";
|
||||||
$ret .= FW_submit("submit", "Write .gplot file")." ".
|
$ret .= (exists($conf{readonly}) ?
|
||||||
|
'<span>.gplot file is "set readonly"</span>' :
|
||||||
|
FW_submit("submit", "Write .gplot file")." ").
|
||||||
FW_submit("showFileLogData", "Show preprocessed input").
|
FW_submit("showFileLogData", "Show preprocessed input").
|
||||||
"</td></tr>";
|
"</td></tr>";
|
||||||
|
|
||||||
|
@ -3872,7 +3872,8 @@ DoTrigger($$@)
|
|||||||
|
|
||||||
my $txt = ($inform{$c}{type} eq "timer" ? "$t " : "").
|
my $txt = ($inform{$c}{type} eq "timer" ? "$t " : "").
|
||||||
"$hash->{TYPE} $dev $event\n";
|
"$hash->{TYPE} $dev $event\n";
|
||||||
my $enc = $dc->{encoding} && $dc->{encoding} eq "latin1" ? "Latin1":"UTF-8";
|
my $enc = $dc->{encoding} &&
|
||||||
|
$dc->{encoding} eq "latin1" ? "Latin1":"UTF-8";
|
||||||
$txt = Encode::encode($enc, $txt) if($unicodeEncoding);
|
$txt = Encode::encode($enc, $txt) if($unicodeEncoding);
|
||||||
addToWritebuffer($dc, $txt);
|
addToWritebuffer($dc, $txt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user