]> code.citadel.org Git - citadel.git/blobdiff - webcit/graphics.c
* add transitional beginboxx template and move some places to the new syntax
[citadel.git] / webcit / graphics.c
index 9cc0d4145babb464433ba2eabcec8e8ef3c48b66..add3b0021929ebe3072806906f481b5aefc9e2e7 100644 (file)
@@ -22,10 +22,13 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
        }
        output_headers(1, 1, 0, 0, 0, 0);
 
+       StrBuf *Buf;
        output_headers(1, 1, 1, 0, 0, 0);
 
-       svput("BOXTITLE", WCS_STRING, _("Image upload"));
-       do_template("beginbox");
+       Buf = NewStrBufPlain(_("Image upload"), -1);
+       DoTemplate(HKEY("beginbox"), NULL, Buf, CTX_STRBUF);
+
+       FreeStrBuf(&Buf);
 
        wprintf("<form enctype=\"multipart/form-data\" action=\"%s\" "
                "method=\"post\" name=\"graphicsupload\">\n", uplurl);
@@ -52,7 +55,7 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
        wprintf("</div>\n");
        wprintf("</form>\n");
 
-       do_template("endbox");
+       do_template("endbox", NULL);
 
        wDumpContent(1);
 }