Cleaned up some commented-out stuff that was left in various files
authorArt Cancro <ajc@citadel.org>
Thu, 14 Dec 2006 20:27:18 +0000 (20:27 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 14 Dec 2006 20:27:18 +0000 (20:27 +0000)
webcit/html2html.c
webcit/static/wclib.js

index abd5904e846a1577fa6c2af0c5a2d3fa3e72eed6..8799aaa2a3d6a2d85a61b511ebc7b7927338abc0 100644 (file)
@@ -255,8 +255,10 @@ void output_html(char *supplied_charset, int treat_as_wiki) {
        converted_alloc = content_length + 8192;
        converted_msg = malloc(converted_alloc);
        if (converted_msg == NULL) {
-               abort();                        /* FIXME */
+               wprintf("Error %d: %s<br />%s:%s", errno, strerror(errno), __FILE__, __LINE__);
+               goto BAIL;
        }
+
        strcpy(converted_msg, "");
        ptr = msg;
        msgend = strchr(msg, 0);
@@ -392,7 +394,7 @@ void output_html(char *supplied_charset, int treat_as_wiki) {
        /** Output our big pile of markup */
        client_write(converted_msg, output_length);
 
-       /** A little trailing vertical whitespace... */
+BAIL:  /** A little trailing vertical whitespace... */
        wprintf("<br /><br />\n");
 
        /** Now give back the memory */
index fbe50fde5a673aa3f427d4940b7ebee76a730c04..96d472feb8cfab576f44cc3c31982ac0c29b2e7e 100644 (file)
@@ -625,7 +625,7 @@ fwindow.parentNode.removeChild(fwindow);
 // Place a gradient loadscreen on an element, e.g to use before Ajax.updater
 function CtdlLoadScreen(elementid) {
 var elem = document.getElementById(elementid);
-elem.innerHTML = "<b>Loading....</b> <img src=\"/static/gradientanim.gif\"/>";
+elem.innerHTML = "<div align=center><br><b>Loading....</b><br /><img src=\"/static/gradientanim.gif\"/></div>";
 }
 // Show info for a user, basically replaces showuser()
 // matt@comalies is to blame for this poorly coded masterpiece.