Jesse Becker wrote: > I think that $rrd_options might be defined in the wrong spot? > > I'm getting lots of "Undefined variable: rrd_options in functions.php" error > messages in trunk. It is used in functions.php in two places, as of r2049. > Digging a bit, I see that $rrd_options is defined at the top of > get_context.php (also from r2049). get_context.php includes functions.php, > but not vice-versa. > > It seems that the logical place for this variable is actually in conf.php, > and > then functions.php could call 'include_once("conf.php")'. > > This sound okay, or am I missing something? > The reason I didn't put $rrd_options in conf.php is because it's value is meant to be derived from other variables, in other words, the administrator should not change $rrd_options itself.
However, if get_context.php is not always read, then maybe there is another approach: I can create a `do not touch/advanced users only' section at the bottom of conf.php, and things like $rrd_options can go there. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers