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

This commit is contained in:
Laurent Destailleur 2005-07-16 14:26:36 +00:00
parent 233ffa6325
commit 0b7a680e68

View File

@ -55,6 +55,8 @@ class BarGraph extends Graph
*/ */
function BarGraph() function BarGraph()
{ {
global $conf;
// Test si module GD présent // Test si module GD présent
$modules_list = get_loaded_extensions(); $modules_list = get_loaded_extensions();
$isgdinstalled=0; $isgdinstalled=0;
@ -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;