* add transitional beginboxx template and move some places to the new syntax
[citadel.git] / webcit / graphics.c
index 601b4d0a43359aed77fef439aa3a2394dcc02ab6..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", NULL);
+       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);