[dev] bug in new webroot code

Martin Ebourne lists at ebourne.me.uk
Fri Apr 30 09:06:55 PDT 2004


On Fri, 2004-04-30 at 16:38, Chuck Hagenbuch wrote:
> Quoting Martin Ebourne <lists at ebourne.me.uk>:
> 
> > The new way of working out the webroot in registry.php - ie.
> >
> >     $webroot = str_replace(array('\\',
> >                                  $_SERVER['DOCUMENT_ROOT'],
> >                                  '/config/registry.php'),
> >                            array('/', '', ''), __FILE__);
> >
> > breaks if you symlink registry.php -> registry.php.dist.
> 
> I'm not sure I want to consider that a supported configuration. Patch? Other
> suggestions?

I have to say I tried the recommended method of copying *.php.dist to
*.php for some months, but found keeping them all up to date too high an
overhead every time I updated. Personally I've found the symlinks have
made life much easier.

So here's a possible patch.

Cheers,

Martin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reg.diff
Type: text/x-patch
Size: 776 bytes
Desc: 
Url : http://lists.horde.org/archives/dev/attachments/20040430/14bd8568/reg.bin


More information about the dev mailing list