]> code.citadel.org Git - citadel.git/blobdiff - webcit/graphics.c
* migrated SUBST stuff to hash
[citadel.git] / webcit / graphics.c
index 3c16baf414e218dd2c91fa16de6880e26ced0bcd..a1d50b9e44e790369b5cdaef5918cf80c7d078d0 100644 (file)
@@ -24,7 +24,7 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
 
        output_headers(1, 1, 1, 0, 0, 0);
 
-       svprintf("BOXTITLE", WCS_STRING, _("Image upload"));
+       svput("BOXTITLE", WCS_STRING, _("Image upload"));
        do_template("beginbox");
 
        wprintf("<form enctype=\"multipart/form-data\" action=\"%s\" "
@@ -66,7 +66,7 @@ void do_graphics_upload(char *filename)
        int thisblock;
        bytes_remaining = WC->upload_length;
 
-       if (!IsEmptyStr(bstr("cancel_button"))) {
+       if (havebstr("cancel_button")) {
                strcpy(WC->ImportantMessage,
                        _("Graphics upload has been cancelled."));
                display_main_menu();