--- 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;
}