]> code.citadel.org Git - citadel.git/blobdiff - webcit/graphics.c
* buybuy serv_read
[citadel.git] / webcit / graphics.c
index 378cdfbc5e922375921ce81a735a0d023fba4c2a..6aab9381ae1392e6d66b22ceb4b602fa0d611668 100644 (file)
@@ -9,6 +9,7 @@
 
 void display_graphics_upload(char *description, char *filename, char *uplurl)
 {
+       WCTemplputParams SubTP;
        StrBuf *Buf;
        char buf[SIZ];
 
@@ -21,12 +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); */
 
        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);