From 0b7a680e681ce75815b9529fbffd6030ed5089a8 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sat, 16 Jul 2005 14:26:36 +0000
Subject: [PATCH] Fix: La couleur de fond des graphs n'etait pas prise depuis
 le theme.

---
 htdocs/bargraph.class.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/htdocs/bargraph.class.php b/htdocs/bargraph.class.php
index 8f171a7bb79..12e53eaaeca 100644
--- a/htdocs/bargraph.class.php
+++ b/htdocs/bargraph.class.php
@@ -55,6 +55,8 @@ class BarGraph extends Graph
      */
     function BarGraph()
     {
+        global $conf;
+        
         // Test si module GD pr�sent
         $modules_list = get_loaded_extensions();
         $isgdinstalled=0;
@@ -78,7 +80,9 @@ class BarGraph extends Graph
         if (is_readable($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;
-- 
GitLab