Index: src/hg/lib/hVarSubst.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hVarSubst.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/lib/hVarSubst.c	4 Jun 2009 19:13:55 -0000	1.4
+++ src/hg/lib/hVarSubst.c	25 Jun 2009 05:34:41 -0000	1.5
@@ -4,8 +4,9 @@
  * with behavior of the old substitution mechanism. */
 #include "common.h"
 #include "trackDb.h"
 #include "hdb.h"
+#include "hui.h"
 #include "sqlNum.h"
 #include "hVarSubst.h"
 
 static boolean isVarEnd(boolean inBraces, char c)
@@ -226,8 +227,10 @@
 if (sameString(varName, "matrix"))
     substMatrixHtml(tdb, dest);
 else if (sameString(varName, "chainLinearGap"))
     substLinearGap(tdb, dest);
+else if (sameString(varName, "downloadsServer"))
+    dyStringAppend(dest, hDownloadsServer());
 else
     dyStringAppend(dest, lookupTrackDbSubVar(desc, tdb, varName, varName));
 }
 

