src/hg/lib/hui.c 1.187

1.187 2009/04/23 22:42:28 galt
fixing cgis so that udcCache dir is set by new hg.conf setting udc.cacheDir=
Index: src/hg/lib/hui.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hui.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -b -B -U 4 -r1.186 -r1.187
--- src/hg/lib/hui.c	22 Apr 2009 23:21:50 -0000	1.186
+++ src/hg/lib/hui.c	23 Apr 2009 22:42:28 -0000	1.187
@@ -17,8 +17,9 @@
 #include "obscure.h"
 #include "wiggle.h"
 #include "phyloTree.h"
 #include "hgMaf.h"
+#include "udc.h"
 #include "customTrack.h"
 #include "encode/encodePeak.h"
 
 static char const rcsid[] = "$Id$";
@@ -92,8 +93,15 @@
 else
     return cfgOptionDefault("central.cookie", "hguid");
 }
 
+void setUdcCacheDir()
+/* set the path to the udc cache dir */
+{
+udcSetDefaultDir(cfgOptionDefault("udc.cacheDir", udcDefaultDir()));
+}
+
+
 char *wrapWhiteFont(char *s)
 /* Write white font around s */
 {
 static char buf[256];