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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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);

View File

@ -5970,7 +5970,7 @@
"type": "boolean"
},
"webui.graph_type": {
"default": "png",
"default": "svg",
"group": "webui",
"section": "graph",
"order": 1,