Skip to content
Snippets Groups Projects
Commit 0b7a680e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: La couleur de fond des graphs n'etait pas prise depuis le theme.

parent 233ffa63
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,8 @@ class BarGraph extends Graph ...@@ -55,6 +55,8 @@ class BarGraph extends Graph
*/ */
function BarGraph() function BarGraph()
{ {
global $conf;
// Test si module GD prsent // Test si module GD prsent
$modules_list = get_loaded_extensions(); $modules_list = get_loaded_extensions();
$isgdinstalled=0; $isgdinstalled=0;
...@@ -78,7 +80,9 @@ class BarGraph extends Graph ...@@ -78,7 +80,9 @@ class BarGraph extends Graph
if (is_readable($color_file)) if (is_readable($color_file))
{ {
include($color_file); include($color_file);
$this->bgcolor = $theme_bgcolor; if (isset($theme_bordercolor)) $this->bordercolor = $theme_bordercolor;
if (isset($theme_datacolor)) $this->datacolor = $theme_datacolor;
if (isset($theme_bgcolor)) $this->bgcolor = $theme_bgcolor;
} }
$this->precision_y = 0; $this->precision_y = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment