* migrate message creation to templates (citing still missing)
[citadel.git] / webcit / webserver.c
index a28e87f353c0deda683a4a7bbd05c5a844704d36..05ba0517641b120952b981d89f85d51d1e130d1e 100644 (file)
@@ -659,7 +659,7 @@ const char *nix(void *vptr) {snprintf(foobuf, 32, "%0x", (long) vptr); return fo
 void InitTemplateCache(void);
 extern int LoadTemplates;
 extern void LoadZoneFiles(void);
-
+StrBuf *csslocal = NULL;
 /*
  * Here's where it all begins.
  */
@@ -882,6 +882,10 @@ int main(int argc, char **argv)
        initialize_viewdefs();
        initialize_axdefs();
 
+       if (!access("static.local/webcit.css", R_OK)) {
+               csslocal = NewStrBufPlain(HKEY("<link href=\"static.local/webcit.css\" rel=\"stylesheet\" type=\"text/css\">"));
+       }
+
        /* Tell libical to return an error instead of aborting if it sees badly formed iCalendar data. */
        icalerror_errors_are_fatal = 0;