68939353509822872457fd54dd73ea930ccdbc69 larrym Tue Jun 12 12:46:33 2012 -0700 fix compiler error diff --git src/hg/lib/cart.c src/hg/lib/cart.c index d63d23d..34f29df 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -1516,32 +1516,30 @@ if (inWeb) webEnd(); /* this does googleAnalytics for a lot of CGIs */ else cartFooter(); popWarnHandler(); } void setThemeFromCart(struct cart *cart) /* If 'theme' variable is set in cart: overwrite background with the one from * defined for this theme Also set the "styleTheme", with additional styles * that can overwrite the main style settings */ { // Get theme from cart and use it to get background file from config; // format is browser.theme.=[,] -char **options; -int optionCount; char *cartTheme = cartOptionalString(cart, "theme"); // XXXX which setting should take precedence? Currently browser.theme does. char *styleFile = cfgOption("browser.style"); if(styleFile != NULL) { char buf[512]; safef(buf, sizeof(buf), "", styleFile); char *copy = cloneString(buf); htmlSetStyleTheme(copy); // for htmshell.c, used by hgTracks webSetStyle(copy); // for web.c, used by hgc } if(isNotEmpty(cartTheme))