htdocs/graph.php
changeset 44 73f74d395f95
parent 43 ce2e9caf2dfa
--- a/htdocs/graph.php	Sun Jan 04 16:40:36 2009 -0500
+++ b/htdocs/graph.php	Mon Jan 05 22:29:36 2009 -0500
@@ -9,6 +9,8 @@
 
 function makeGraph($type = 'bar')
 {
+  global $webtheme;
+  
   $class = ( $type == 'line' ) ? 'LineGraph' : 'BarGraph';
   $g = new $class(); // _Compat();
   
@@ -33,6 +35,10 @@
   $g->SetScaleRoundY(0);
   $g->SetScaleRoundX(0);
   $g->SetAxisStepSize(7);
+  
+  if ( file_exists("./themes/$webtheme/graph_$type.def") )
+    $g->LoadGraph(realpath("./themes/$webtheme/graph_$type.def"));
+  
   return $g;
 }