src/hg/hgTables/mainPage.c 1.147

1.147 2010/03/25 17:41:25 angie
Use hAllocConnTrack instead of sqlConnect or hAllocConn to support profiles in hg.conf.
Index: src/hg/hgTables/mainPage.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/mainPage.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -b -B -U 4 -r1.146 -r1.147
--- src/hg/hgTables/mainPage.c	26 Jan 2010 00:36:22 -0000	1.146
+++ src/hg/hgTables/mainPage.c	25 Mar 2010 17:41:25 -0000	1.147
@@ -108,9 +108,9 @@
 struct grp *showGroupField(char *groupVar, char *groupScript,
     struct sqlConnection *conn, boolean allTablesOk)
 /* Show group control. Returns selected group. */
 {
-struct grp *group, *groupList = makeGroupList(conn, fullTrackList, allTablesOk);
+struct grp *group, *groupList = makeGroupList(fullTrackList, allTablesOk);
 struct grp *selGroup = findSelectedGroup(groupList, groupVar);
 hPrintf("<B>group:</B>\n");
 hPrintf("<SELECT NAME=%s %s>\n", groupVar, groupScript);
 for (group = groupList; group != NULL; group = group->next)
@@ -787,9 +787,9 @@
     char *table2 = cartUsualString(cart, hgtaCorrelateTable, "none");
     hPrintf("<TR><TD><B>correlation:</B>\n");
     if (differentWord(table2,"none") && strlen(table2))
         {
-        struct grp *groupList = makeGroupList(conn, fullTrackList, TRUE);
+        struct grp *groupList = makeGroupList(fullTrackList, TRUE);
         struct grp *selGroup = findSelectedGroup(groupList, hgtaCorrelateGroup);
         struct trackDb *tdb2 = findSelectedTrack(fullTrackList, selGroup,hgtaCorrelateTrack);
         if (tdbIsComposite(tdb2))
             {