]> code.citadel.org Git - citadel.git/blobdiff - webcit/graphics.c
* buybuy serv_read
[citadel.git] / webcit / graphics.c
index add3b0021929ebe3072806906f481b5aefc9e2e7..6aab9381ae1392e6d66b22ceb4b602fa0d611668 100644 (file)
@@ -9,6 +9,8 @@
 
 void display_graphics_upload(char *description, char *filename, char *uplurl)
 {
+       WCTemplputParams SubTP;
+       StrBuf *Buf;
        char buf[SIZ];
 
 
@@ -20,13 +22,15 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
                display_main_menu();
                return;
        }
-       output_headers(1, 1, 0, 0, 0, 0);
+       /*output_headers(1, 1, 0, 0, 0, 0); */
 
-       StrBuf *Buf;
        output_headers(1, 1, 1, 0, 0, 0);
 
        Buf = NewStrBufPlain(_("Image upload"), -1);
-       DoTemplate(HKEY("beginbox"), NULL, Buf, CTX_STRBUF);
+       memset(&SubTP, 0, sizeof(WCTemplputParams));
+       SubTP.Filter.ContextType = CTX_STRBUF;
+       SubTP.Context = Buf;
+       DoTemplate(HKEY("beginbox"), NULL, &SubTP);
 
        FreeStrBuf(&Buf);