mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow specifying the background colour in graph images (#14192)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user