Change default graph image to SVG (#15586)

* Update config_definitions.json

* Update Rrd.php
This commit is contained in:
Justin Lentz
2023-11-27 18:43:15 -06:00
committed by GitHub
parent a61c11db7e
commit d61c71bcbe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ class Rrd extends BaseDatastore
}
// if valid image is returned with error, extract image and feedback
$image_type = Config::get('webui.graph_type', 'png');
$image_type = Config::get('webui.graph_type', 'svg');
$search = $this->getImageEnd($image_type);
if (($position = strrpos($process->getOutput(), $search)) !== false) {
$position += strlen($search);
+1 -1
View File
@@ -5970,7 +5970,7 @@
"type": "boolean"
},
"webui.graph_type": {
"default": "png",
"default": "svg",
"group": "webui",
"section": "graph",
"order": 1,