X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebserver.c;h=05ba0517641b120952b981d89f85d51d1e130d1e;hb=efa5c510f812880225d8c7690a72233333504e88;hp=a28e87f353c0deda683a4a7bbd05c5a844704d36;hpb=97c9db574968d15773c0c386819b45e32fc8340c;p=citadel.git diff --git a/webcit/webserver.c b/webcit/webserver.c index a28e87f35..05ba05176 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -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("")); + } + /* Tell libical to return an error instead of aborting if it sees badly formed iCalendar data. */ icalerror_errors_are_fatal = 0;