Allow specifying the background colour in graph images (#14192)

This commit is contained in:
Warren Ashcroft
2022-08-19 02:21:28 +01:00
committed by GitHub
parent 2741612eb6
commit 73fee2a1aa

View File

@@ -94,11 +94,14 @@ if ($_GET['bg']) {
$rrd_options .= ' -c CANVAS#' . Clean::alphaDash($_GET['bg']) . ' ';
}
if ($_GET['bbg']) {
$rrd_options .= ' -c BACK#' . Clean::alphaDash($_GET['bbg']) . ' ';
}
if ($_GET['font']) {
$rrd_options .= ' -c FONT#' . Clean::alphaDash($_GET['font']) . ' ';
}
// $rrd_options .= " -c BACK#FFFFFF";
if ($height < '99') {
$rrd_options .= ' --only-graph';
}