[dev] Re: [cvs] commit: chora README common.php...

Jon Parise jon@csh.rit.edu
Thu, 18 Jan 2001 04:19:11 -0500


On Tue, Jan 16, 2001 at 10:56:04PM +0000, Anil Madhavapeddy wrote:

> > When you feel it's pretty stable, we can replace the current
> > cvsweb.cgi with this nifty new stuff.
> 
> Sure, go for it with chora-0.2.0.  I've found a couple of files
> in the FreeBSD repository which break things, but none in Horde,
> so we might as well start eating our own dogfood :D 
 
Alright, it's live now.  I needed to apply with patch to make it work
correctly as the document root:

Index: common.php
===================================================================
RCS file: /cvs/horde/chora/common.php,v
retrieving revision 1.26
diff -u -r1.26 common.php
--- common.php  2001/01/16 20:05:25     1.26
+++ common.php  2001/01/18 09:17:44
@@ -186,6 +186,9 @@
 
 /* Path to the script base (e.g. /whups) */
 $scriptPath = dirname($scriptName);
+if ($scriptPath == '/') {
+       $scriptPath = '';
+}
 $fullname = "$cvsroot/$where";
 
 $wherePath = '';

There might be a cleaner fix, but I'll leave that up to you.

-- 
Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member