[dev] webroot paths in horde/config/registry.php

Rich Lafferty rich@horde.org
Sun, 21 Jan 2001 14:05:44 -0500


On Sun, Jan 21, 2001 at 03:16:16AM -0500, Chuck Hagenbuch (chuck@horde.org) wrote:
> > > Was there a reason that that was hardcoded, as compared to
> > > 
> > >   $__horde_applications['imp']['webroot'] =
> > $horde['horde']['paths']['root'] . '/imp';
> 
> That's just as hardcoded, really - you're still assuming where imp is.

No, not assuming -- in registry.php, you're *telling* horde where IMP
is. The ideal approach to configurations, when something can't be
determined automagically, is to only have to configure something in
one place -- by reusing $horde['horde']['paths']['root'] here, it
means that when the sysadmin moves the entire Horde tree somewhere, he
only needs to change that value in one place.

  -Rich 

-- 
------------------------------ Rich Lafferty ---------------------------
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC                 (514) 848-7625
------------------------- rich@alcor.concordia.ca ----------------------