mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 23:46:03 +00:00
98_SVG.pm: add error-message for readonly-returns (Forum #126561)
git-svn-id: https://svn.fhem.de/fhem/trunk@25781 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2e44e7ed43
commit
82cc49142d
@ -531,8 +531,8 @@ SVG_PEdit($$$$)
|
|||||||
|
|
||||||
$ret .= "<tr class=\"".(($r++&1)?"odd":"even")."\"><td colspan=\"3\">";
|
$ret .= "<tr class=\"".(($r++&1)?"odd":"even")."\"><td colspan=\"3\">";
|
||||||
$ret .= (exists($conf{readonly}) ?
|
$ret .= (exists($conf{readonly}) ?
|
||||||
'<span>.gplot file is "set readonly"</span>' :
|
FW_submit("readonly", '.gplot file is set readonly'):
|
||||||
FW_submit("submit", "Write .gplot file")." ").
|
FW_submit("submit", "Write .gplot file"))." ".
|
||||||
FW_submit("showFileLogData", "Show preprocessed input").
|
FW_submit("showFileLogData", "Show preprocessed input").
|
||||||
"</td></tr>";
|
"</td></tr>";
|
||||||
|
|
||||||
@ -664,6 +664,13 @@ SVG_WriteGplot($)
|
|||||||
FW_digestCgi($arg);
|
FW_digestCgi($arg);
|
||||||
|
|
||||||
return if($FW_hiddenroom{detail});
|
return if($FW_hiddenroom{detail});
|
||||||
|
if($FW_webArgs{readonly}) {
|
||||||
|
$FW_RET .=
|
||||||
|
'<div id="errmsg">'.
|
||||||
|
"gplot file marked as readonly: won't write!".
|
||||||
|
'</div>';
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return SVG_showData() if($FW_webArgs{showFileLogData});
|
return SVG_showData() if($FW_webArgs{showFileLogData});
|
||||||
|
|
||||||
if(!defined($FW_webArgs{par_0_0})) {
|
if(!defined($FW_webArgs{par_0_0})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user