diff --git a/fhem/FHEM/98_SVG.pm b/fhem/FHEM/98_SVG.pm index fa0b3ce3e..10e37d18a 100644 --- a/fhem/FHEM/98_SVG.pm +++ b/fhem/FHEM/98_SVG.pm @@ -531,8 +531,8 @@ SVG_PEdit($$$$) $ret .= ""; $ret .= (exists($conf{readonly}) ? - '.gplot file is "set readonly"' : - FW_submit("submit", "Write .gplot file")." "). + FW_submit("readonly", '.gplot file is set readonly'): + FW_submit("submit", "Write .gplot file"))." ". FW_submit("showFileLogData", "Show preprocessed input"). ""; @@ -664,6 +664,13 @@ SVG_WriteGplot($) FW_digestCgi($arg); return if($FW_hiddenroom{detail}); + if($FW_webArgs{readonly}) { + $FW_RET .= + '
'. + "gplot file marked as readonly: won't write!". + '
'; + return 0; + } return SVG_showData() if($FW_webArgs{showFileLogData}); if(!defined($FW_webArgs{par_0_0})) {