]> code.citadel.org Git - citadel.git/blobdiff - webcit/floors.c
* Finished gzip compression of dynamic pages (when browser supports it)
[citadel.git] / webcit / floors.c
index 1b9d36d41cb0431f77e67bce9e083d3a667520d3..511a5907ea7c6281153a6acc9687c8572a7db4e2 100644 (file)
@@ -43,7 +43,7 @@ void display_floorconfig(char *prepend_html)
        output_headers(3);
 
        if (prepend_html != NULL) {
-               write(WC->http_sock, prepend_html, strlen(prepend_html));
+               http_write(WC->http_sock, prepend_html, strlen(prepend_html));
        }
 
        serv_printf("LFLR");    /* FIXME put a real test here */
@@ -79,11 +79,13 @@ void display_floorconfig(char *prepend_html)
                        wprintf("</TD><TD>"
                                "<A HREF=\"/delete_floor?floornum=%d\">"
                                "<FONT SIZE=-1>(delete floor)</A>"
-                               "</FONT><BR><FONT SIZE=-1>"
-                               "<A HREF=\"/display_editfloorpic&"
-                               "which_floor=%d\">(edit graphic)</A>",
-                               floornum, floornum);
+                               "</FONT><BR>", floornum
+                       );
                }
+               wprintf("<FONT SIZE=-1>"
+                       "<A HREF=\"/display_editfloorpic&"
+                       "which_floor=%d\">(edit graphic)</A>",
+                       floornum);
                wprintf("</TD></TR></TABLE>");
                wprintf("</TD>");